Skip to content

Commit 8f0b30c

Browse files
committed
fix docstring
1 parent 4e311bb commit 8f0b30c

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

synapseclient/models/schema_organization.py

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -625,15 +625,27 @@ def store(
625625
 
626626
627627
```python
628-
from synapseclient.models import SchemaOrganization
628+
from synapseclient.models import JSONSchema
629629
from synapseclient import Synapse
630630
631631
syn = Synapse()
632632
syn.login()
633633
634-
org = SchemaOrganization("my.org.name")
635-
org.store()
636-
print(org)
634+
schema = JSONSchema(organization_name="my.org", name="test.schema")
635+
schema_body = {
636+
{
637+
"properties": {
638+
"Component": {
639+
"description": "TBD",
640+
"not": {
641+
"type": "null"
642+
},
643+
"title": "Component"
644+
}
645+
}
646+
}
647+
}
648+
schema.store(schema_body = schema_body)
637649
```
638650
"""
639651
return self

0 commit comments

Comments
 (0)