Repository navigation
v0.13.0
Pre-release
Pre-release
A minor bump under the beta rule: public error codes appear on failures
that used to carry none, so omnist --json fills errors for them. Follow-ups
from the review of #349. No spec change: vendor/omnist-spec stays at
v0.28.0-beta. Conformance is unchanged: Track 1 19/19, Track 2 304 passed,
0 failed, 34 skipped of 338.
document.limit.depthon every depth refusal. A nesting-depth refusal
from a writer orcheck_*,Doc.to_data/to_grouped,inferand
Schema.validatewas an uncodedWriteError/DocumentError; it now carries
code="document.limit.depth",path="$"(the readers already did).write.unsupported-valuefor a bare scalar root written as TOML (the
spec says a bare scalar Document cannot be written as TOML),path$.- Verified, no change needed. A self-referential YAML anchor already gives
document.limit.alias-expansion(D-20, since #352); the JSON NaN/Infinity
refusal already giveswrite.unsupported-value. #344 was fixed in 0.12.0. - Still uncoded, on purpose (the spec registers no code): a self-referential
Python value (cycle detected), a non-Document value type,DocAPI misuse,
and astrict=Truerefusal. Their--jsonpayload haserrors: []and a
message, which is always present; documented indocs/api.mdand
docs/cli.md. - Conformance runner.
check_version()now also compares the module file the
CLI's own interpreter imports with this checkout's (the same version number
from another install is refused). Success-path diagnostics are compared for
everyok: trueoperation (validate,materialize, OMLparse/write,
parse_schema,extract, as the codecs already were): where the CLI has no
channel the reported set is empty, so an expected diagnostic fails instead of
passing unchecked.materializenow passes--report. - Docs. A comment on
_xml_well_formedrecords why its handler-less
re-check parser is unreachable with a DTD today. - Not done: a lone surrogate in a string value written through the
str
API (write_json(read_json('{"a":"\ud800"}'))) still yields text that does
not encode to UTF-8. The spec leaves it open (D-14 puts it out of scope);
waiting on a spec ruling. - Version strings in
tests/test_canonical.pyandtests/test_docs.pymoved to
0.13.0.