We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v0.2.6
fix_type A null object (=dictionary) is not handled correctly. It results in
This test:
import getschema null_entries = { "index": None, "array": [ "1.5", None, ], "nested_field": None, "boolean_field": None, "number_field": None, "string_field": None, } def test_reject_null_object(): schema = getschema.infer_schema(records) # This will pass _ = getschema.fix_type(null_entries, schema) schema["properties"]["nested_field"]["type"] = ["object"] try: _ = getschema.fix_type(null_entries, schema) except Exception as e: assert(str(e).startswith("Null object given at")) else: raise Exception("Supposed to fail with null value")
...will fail with:
KeyError: "property type (object) Expected a dict object.Got: <class 'NoneType'>...
The text was updated successfully, but these errors were encountered:
fix: pass the valid null object (#17)
1bc2ef6
fix: pass the valid null object (#17) (#18)
1069ca1
daigotanaka
No branches or pull requests
v0.2.6
fix_type A null object (=dictionary) is not handled correctly. It results in
This test:
...will fail with:
The text was updated successfully, but these errors were encountered: