Skip to content

Commit 62b5214

Browse files
committed
remove debug=true
1 parent 9a7c9cc commit 62b5214

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

docs/tutorials/python/json_schema.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,28 +21,32 @@ By the end of this tutorial, you will:
2121
* You are familiar with [adding annotations](./annotation.md) to synapse entity.
2222

2323

24-
## 1. Set up Synapse Python client and retrieve project
24+
## 1. Set Up Synapse Python Client and Retrieve Project
2525

2626
```python
2727
{!docs/tutorials/python/tutorial_scripts/json_schema.py!lines=1-20}
2828
```
2929

30-
## 2. Take a look at the constants and structure of the JSON schema
30+
## 2. Take a Look at the Constants and Structure of the JSON Schema
3131

3232
```python
3333
{!docs/tutorials/python/tutorial_scripts/json_schema.py!lines=23-49}
3434
```
3535

3636
Derived annotations allow you to define default values for annotations based on schema rules, ensuring consistency and reducing manual input errors. As you can see here, you could use derived annotations to prescribe default annotation values. Please read more about derived annotations [here](https://help.synapse.org/docs/JSON-Schemas.3107291536.html#JSONSchemas-DerivedAnnotations).
3737

38+
Note: If you make an update to your schema, you can re-register your schema with the organization and give it a new version number:
39+
```python
40+
test_org.create_json_schema(new_schema_body, your_schema_name, "0.0.2")
41+
```
3842

39-
## 3. Try create test organization and json schema if they do not exist
43+
## 3. Try Create Test Organization and JSON Schema if They Do Not Exist
4044
Next, try creating a test organization and register a schema if they do not already exist:
4145
```python
4246
{!docs/tutorials/python/tutorial_scripts/json_schema.py!lines=51-64}
4347
```
4448

45-
## 4. Bind the JSON schema to the folder
49+
## 4. Bind the JSON Schema to the Folder
4650
After creating the organization, you can now bind your json schema to a test folder. When you bind a JSON Schema to a project or folder, then all items inside of the project or folder will inherit the schema binding, unless the item has a schema bound to itself.
4751

4852
When you bind the schema, you may also include the boolean property `enable_derived_annos` to have Synapse automatically calculate derived annotations based on the schema:

docs/tutorials/python/tutorial_scripts/json_schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from synapseclient.models import File, Folder
88

99
# 1. Set up Synapse Python client and retrieve project
10-
syn = synapseclient.Synapse(debug=True)
10+
syn = synapseclient.Synapse()
1111
syn.login()
1212

1313

0 commit comments

Comments
 (0)