@@ -196,15 +196,15 @@ async def bind_schema_async(
196
196
self ,
197
197
json_schema_uri : str ,
198
198
* ,
199
- enable_derived_annos : bool = False ,
199
+ enable_derived_annotations : bool = False ,
200
200
synapse_client : Optional ["Synapse" ] = None ,
201
201
) -> JSONSchemaBinding :
202
202
"""
203
203
Bind a JSON schema to the entity.
204
204
205
205
Arguments:
206
206
json_schema_uri: The URI of the JSON schema to bind to the entity.
207
- enable_derived_annos : If true, enable derived annotations. Defaults to False.
207
+ enable_derived_annotations : If true, enable derived annotations. Defaults to False.
208
208
synapse_client: The Synapse client instance. If not provided,
209
209
the last created instance from the Synapse class constructor will be used.
210
210
@@ -264,7 +264,7 @@ async def bind_schema_async(
264
264
async def bind_json_schema():
265
265
bound_schema = await test_folder.bind_schema_async(
266
266
json_schema_uri=SCHEMA_URI,
267
- enable_derived_annos =True
267
+ enable_derived_annotations =True
268
268
)
269
269
return bound_schema
270
270
asyncio.run(bind_json_schema())
@@ -278,7 +278,7 @@ async def bind_json_schema():
278
278
async def bind_schema_to_file():
279
279
bound_schema_file = await example_file.bind_schema_async(
280
280
json_schema_uri=SCHEMA_URI,
281
- enable_derived_annos =True
281
+ enable_derived_annotations =True
282
282
)
283
283
return bound_schema_file
284
284
asyncio.run(bind_schema_to_file())
@@ -287,7 +287,7 @@ async def bind_schema_to_file():
287
287
response = await bind_json_schema_to_entity (
288
288
synapse_id = self .id ,
289
289
json_schema_uri = json_schema_uri ,
290
- enable_derived_annos = enable_derived_annos ,
290
+ enable_derived_annotations = enable_derived_annotations ,
291
291
synapse_client = synapse_client ,
292
292
)
293
293
json_schema_version = response .get ("jsonSchemaVersionInfo" , {})
@@ -377,7 +377,7 @@ async def get_schema_async(
377
377
async def bind_json_schema():
378
378
bound_schema = await test_folder.bind_schema_async(
379
379
json_schema_uri=SCHEMA_URI,
380
- enable_derived_annos =True
380
+ enable_derived_annotations =True
381
381
)
382
382
return bound_schema
383
383
asyncio.run(bind_json_schema())
@@ -391,7 +391,7 @@ async def bind_json_schema():
391
391
async def bind_schema_to_file():
392
392
bound_schema_file = await example_file.bind_schema_async(
393
393
json_schema_uri=SCHEMA_URI,
394
- enable_derived_annos =True
394
+ enable_derived_annotations =True
395
395
)
396
396
return bound_schema_file
397
397
asyncio.run(bind_schema_to_file())
@@ -500,7 +500,7 @@ async def unbind_schema_async(
500
500
async def bind_json_schema():
501
501
bound_schema = await test_folder.bind_schema_async(
502
502
json_schema_uri=SCHEMA_URI,
503
- enable_derived_annos =True
503
+ enable_derived_annotations =True
504
504
)
505
505
return bound_schema
506
506
asyncio.run(bind_json_schema())
@@ -514,7 +514,7 @@ async def bind_json_schema():
514
514
async def bind_schema_to_file():
515
515
bound_schema_file = await example_file.bind_schema_async(
516
516
json_schema_uri=SCHEMA_URI,
517
- enable_derived_annos =True
517
+ enable_derived_annotations =True
518
518
)
519
519
return bound_schema_file
520
520
asyncio.run(bind_schema_to_file())
@@ -602,7 +602,7 @@ async def validate_schema_async(
602
602
async def bind_json_schema():
603
603
bound_schema = await test_folder.bind_schema_async(
604
604
json_schema_uri=SCHEMA_URI,
605
- enable_derived_annos =True
605
+ enable_derived_annotations =True
606
606
)
607
607
return bound_schema
608
608
asyncio.run(bind_json_schema())
@@ -616,7 +616,7 @@ async def bind_json_schema():
616
616
async def bind_schema_to_file():
617
617
bound_schema_file = await example_file.bind_schema_async(
618
618
json_schema_uri=SCHEMA_URI,
619
- enable_derived_annos =True
619
+ enable_derived_annotations =True
620
620
)
621
621
return bound_schema_file
622
622
asyncio.run(bind_schema_to_file())
@@ -768,7 +768,7 @@ async def get_schema_derived_keys_async(
768
768
async def bind_json_schema():
769
769
bound_schema = await test_folder.bind_schema_async(
770
770
json_schema_uri=SCHEMA_URI,
771
- enable_derived_annos =True
771
+ enable_derived_annotations =True
772
772
)
773
773
return bound_schema
774
774
asyncio.run(bind_json_schema())
@@ -782,7 +782,7 @@ async def bind_json_schema():
782
782
async def bind_schema_to_file():
783
783
bound_schema_file = await example_file.bind_schema_async(
784
784
json_schema_uri=SCHEMA_URI,
785
- enable_derived_annos =True
785
+ enable_derived_annotations =True
786
786
)
787
787
return bound_schema_file
788
788
asyncio.run(bind_schema_to_file())
@@ -887,7 +887,7 @@ async def get_schema_validation_statistics_async(
887
887
async def bind_json_schema():
888
888
bound_schema = await test_folder.bind_schema_async(
889
889
json_schema_uri=SCHEMA_URI,
890
- enable_derived_annos =True
890
+ enable_derived_annotations =True
891
891
)
892
892
return bound_schema
893
893
asyncio.run(bind_json_schema())
@@ -984,7 +984,7 @@ async def get_invalid_validation_async(
984
984
async def bind_json_schema():
985
985
bound_schema = await test_folder.bind_schema_async(
986
986
json_schema_uri=SCHEMA_URI,
987
- enable_derived_annos =True
987
+ enable_derived_annotations =True
988
988
)
989
989
return bound_schema
990
990
asyncio.run(bind_json_schema())
@@ -1115,7 +1115,7 @@ def get_invalid_validation(
1115
1115
async def bind_json_schema():
1116
1116
bound_schema = await test_folder.bind_schema_async(
1117
1117
json_schema_uri=SCHEMA_URI,
1118
- enable_derived_annos =True
1118
+ enable_derived_annotations =True
1119
1119
)
1120
1120
return bound_schema
1121
1121
asyncio.run(bind_json_schema())
0 commit comments