Changelog#
0.2.3 (2023-07-06)#
Changed#
Add support for $defs keyword in:
0.2.2 (2023-06-14)#
Removed#
get_invalid_csv_files()
, as Python’s CSV parser errors only if the CSV dialect is configured.
0.2.1 (2023-06-14)#
Changed#
validate_schema()
no longer accepts aschema
argument.
0.2.0 (2023-06-14)#
Changed#
validate_schema()
accepts avalidator
argument, instead of using JSON Schema Draft 4.To preserve behavior, install
jsonschema
,rfc3339-validator
andrfc3986-validator
, and change:validate_schema(path, data, schema)
to:
from jsonschema import FormatChecker from jsonschema.validators import Draft4Validator validator = Draft4Validator(schema, format_checker=FormatChecker()) validate_schema(path, data, validator)
0.1.1 (2023-04-19)#
Changed#
Drop support for Python 3.6 (end-of-life 2021-12-23).
Fixed#
jscc.testing.checks.get_empty_files()
correctly returns JSON files that are whitespace only.
0.1.0 (2022-10-28)#
Changed#
Update to jsonref 1.0’s API.
0.0.9 (2022-04-26)#
Changed#
Changed dependency from rfc3987 (GPL) to rfc3986-validator (MIT).
0.0.8 (2022-03-08)#
Added#
jscc.testing.checks.validate_array_items()
warns if a field whosetype
property includes “array” is missing theitems
property.
0.0.7 (2021-11-04)#
Changed#
jscc.testing.checks
:get_empty_files()
,get_misindented_files()
,get_invalid_json_files()
andget_invalid_csv_files()
accept keyword arguments to pass tojscc.testing.filesystem.walk()
andjscc.testing.filesystem.walk_json_data()
.
0.0.6 (2021-07-19)#
Fixed#
jscc.testing.checks.validate_object_id()
supports theomitWhenMerged
property.
0.0.5 (2021-04-10)#
Added#
Add Python wheels distribution.
0.0.4 (2020-06-23)#
Fixed#
jscc.testing.checks.validate_ref()
supports integers in JSON Pointers.jscc.testing.checks.validate_metadata_presence()
allows missingtype
property if configured viaallow_missing
argument.jscc.testing.filesystem.tracked()
supports Windows.
0.0.3 (2020-03-17)#
Added#
jscc.testing.checks.validate_merge_properties()
warns if merge properties are set tofalse
ornull
.Expand docstrings for
jscc.schema.checks.validate_*
methods.
Changed#
jscc.testing.checks.validate_merge_properties()
no longer warns about nullable fields, and no longer accepts anallow_null
argument.jscc.testing.checks.validate_null_type()
warns if an array of objects is nullable. This check was previously performed byjscc.testing.checks.validate_merge_properties()
.jscc.testing.checks.validate_null_type()
’sshould_be_nullable
argument is renamed toexpect_null
.Clarify warning messages.
0.0.2 (2020-03-16)#
Added#
Changed#
jscc.schema.is_codelist()
accepts a list of field names, instead of a CSV reader.jscc.testing.filesystem.walk_csv_data()
returns text content, fieldnames, and rows, instead of a CSV reader.jscc.testing.schema
is moved tojscc.schema
.jscc.schema.is_property_missing
is renamed tojscc.schema.is_missing_property()
.
0.0.1 (2020-03-15)#
First release.