MCPcopy Create free account
hub / github.com/mongodb/mongo-python-driver / fix_up_schema

Method fix_up_schema

test/test_encryption.py:886–891  ·  view source on GitHub ↗

Remove deprecated symbol/dbPointer types from json schema.

(json_schema)

Source from the content-addressed store, hash-verified

884
885 @staticmethod
886 def fix_up_schema(json_schema):
887 """Remove deprecated symbol/dbPointer types from json schema."""
888 for key in list(json_schema["properties"]):
889 if "_symbol_" in key or "_dbPointer_" in key:
890 del json_schema["properties"][key]
891 return json_schema
892
893 @staticmethod
894 def fix_up_curpus(corpus):

Callers 2

_test_corpusMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected