zschema
zschema copied to clipboard
A schema language for JSON documents that allows validation and compilation into various database engines
``` venv/lib/python3.7/site-packages/zschema/leaves.py:580 FutureWarning: Possible nested set at position 1 OID_REGEX = re.compile("[[0-9]+\\.]*") ```
There is a bug in zschema when using the elasticsearch option: ``` zschema --module zgrab2_schemas.zgrab2 elasticsearch zgrab2-ftp /mnt/hgfs/Shared/ftp_dod_cidr.json Traceback (most recent call last): File "/usr/local/bin/zschema", line 11, in load_entry_point('zschema==0.10.2', 'console_scripts',...
If I receive the following validation error: ``` class mismatch for id: expected [, ], 1 has class int ``` I'm not sure _where_ in my document its referring to...
Right now, the `json` command outputs an odd subset of information about a schema---probably what we knew about when we first implemented it. We should go back and make sure...
We should allow a schema file to indicate the minimum version of zschema it needs to be compiled correctly.
The `allow_unknown` feature is currently broken (it will lead to a `KeyError` when it tries to index `theSubRecord[theUnknownKey]`). So, just remove it, since it's not needed.
The `required` flag is ignored during `Record`/`SubRecord` validation. If a `Record` or `SubRecord` has a field with `required=True`, validation should fail if that field is not present in the value...
https://en.wikipedia.org/wiki/Apache_Avro#Avro_Object_Container_File.5B2.5D