File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,12 @@ from datacontract_specification import DataContractSpecification
2525
2626# Load a data contract specification from a file
2727data_contract = DataContractSpecification.from_file(' path/to/your/data_contract.yaml' )
28+ # Print the data contract specification as a YAML string
2829print (data_contract.to_yaml())
30+ ```
31+
32+ ``` python
33+ from datacontract_specification import DataContractSpecification
2934
3035# Load a data contract specification from a string
3136data_contract_str = """
4550 url: https://teams.microsoft.com/l/channel/example/checkout
4651"""
4752data_contract = DataContractSpecification.from_string(data_contract_str)
53+ # Print the data contract specification as a YAML string
4854print (data_contract.to_yaml())
4955```
You can’t perform that action at this time.
0 commit comments