Skip to content

Commit f09aacc

Browse files
BryanFaubleLingling PengLingling Peng
authored
[SYNPY-1599] Patching json schema code examples (#1211)
* Patching json schema code examples --------- Co-authored-by: Lingling Peng <[email protected]> Co-authored-by: Lingling Peng <[email protected]> Co-authored-by: Bryan Fauble <[email protected]>
1 parent ce1cafa commit f09aacc

File tree

3 files changed

+954
-868
lines changed

3 files changed

+954
-868
lines changed

synapseclient/api/json_schema_services.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,12 @@ def get_invalid_json_schema_validation_sync(
189189
Returns:
190190
Object matching <https://rest-docs.synapse.org/rest/org/sagebionetworks/repo/model/schema/ValidationResults.html>
191191
"""
192+
from synapseclient import Synapse
193+
194+
client = Synapse.get_client(synapse_client=synapse_client)
195+
192196
request_body = {"containerId": synapse_id}
193-
response = synapse_client._POST_paginated(
197+
response = client._POST_paginated(
194198
f"/entity/{synapse_id}/schema/validation/invalid", request_body
195199
)
196200
for item in response:

0 commit comments

Comments
 (0)