Repository navigation
v0.12.0
Pre-release
Pre-release
A minor bump under the beta rule, and all five ports take a minor for this
spec version: new public error codes (schema.invalid-label,
schema.invalid-name at $), inputs that used to be accepted are now rejected
(bad names and labels, [0,0] in the writer), and infer derives record names
differently. vendor/omnist-spec moves from
v0.27.0-beta to v0.28.0-beta. No conformance vector pins these rules
(divergence ledger DIV-5), so tests/test_schema_programmatic.py is the only
pin. Conformance is unchanged: Track 1 19/19, Track 2 304 passed, 0 failed,
34 skipped of 338.
schema.invalid-label(S-22). A field label that does not encode to
UTF-8 (a lone surrogate such as"a\udc80") raisesSchemaErrorwhen the
Schemais built, at the record path (never the label), also for OSD text
decoded from a string holding one.to_osd()re-checks every label it
writes, so aFieldappended to a record after theSchemawas built is
caught there too.FieldandRecorddo not check: the record name, hence
the path, is unknown to them.to_osd()used to emit such a label.schema.invalid-name(S-8), programmatic. A record name orReftarget
that does not match[A-Za-z_][A-Za-z0-9_]*(for example"bad name")
raisesSchemaErrorat$, with the name in the message only.Ref(...)
checks its own name;Schema(...)checks everyenvkey.[0,0]is refused by the OSD writer (S-15, OSD-16, S-24).to_osd
raisesWriteError(write.unsupported-value, path the record) for a field
withmax = 0; it used to write"a" [0]: string, which no reader accepts.
The model still accepts[0,0].prune()drops such fields except from an
unsatisfiable root, so no algebra operation produces one; prune before
writing.- S-23 cannot arise. There is no caller-supplied record ordering in the
API (to_osdtakes onlyindent), soschema.unknown-recordis never
raised. There is no OSD-OML schema writer in this port. inferrecord names are valid names. Labels with accented letters,
non-ASCII digits or only digits ("\u00e9","123") used to give a record
name S-8 rejects; names are now ASCII-only and fall back toRec.- Tests and fixtures needing a change: none; no existing test built a name or
label these rules forbid. The0.11.0version asserts in
tests/test_canonical.pyandtests/test_docs.pymoved to0.12.0.