Skip to content

Commit 573a94f

Browse files
committed
Update
1 parent df7a2c8 commit 573a94f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,12 @@ from datacontract_specification import DataContractSpecification
2525

2626
# Load a data contract specification from a file
2727
data_contract = DataContractSpecification.from_file('path/to/your/data_contract.yaml')
28+
# Print the data contract specification as a YAML string
2829
print(data_contract.to_yaml())
30+
```
31+
32+
```python
33+
from datacontract_specification import DataContractSpecification
2934

3035
# Load a data contract specification from a string
3136
data_contract_str = """
@@ -45,5 +50,6 @@ info:
4550
url: https://teams.microsoft.com/l/channel/example/checkout
4651
"""
4752
data_contract = DataContractSpecification.from_string(data_contract_str)
53+
# Print the data contract specification as a YAML string
4854
print(data_contract.to_yaml())
4955
```

0 commit comments

Comments
 (0)