File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -306,18 +306,22 @@ def response_handler(resp):
306306
307307 return self ._execute (request , response_handler )
308308
309- def configure (self , sync = None ):
309+ def configure (self , sync = None , schema = None ):
310310 """Configure collection properties.
311311
312312 :param sync: Block until operations are synchronized to disk.
313313 :type sync: bool
314+ :param schema: document schema for validation of objects.
315+ :type schema: dict
314316 :return: New collection properties.
315317 :rtype: dict
316318 :raise arango.exceptions.CollectionConfigureError: If operation fails.
317319 """
318320 data = {}
319321 if sync is not None :
320322 data ['waitForSync' ] = sync
323+ if schema is not None :
324+ data ['schema' ] = schema
321325
322326 request = Request (
323327 method = 'put' ,
You can’t perform that action at this time.
0 commit comments