Conformance
🛈 DocStrings¶
conformance.toml: renames and known differences of a pinned reference.
Source code in src/aclientp/schema_reference.py
allow_missing
class-attribute
instance-attribute
¶
Accept upstream shapes, enums and methods without a counterpart yet, while a model package is being written. Fields of the shapes that exist are still checked.
check_constraints
class-attribute
instance-attribute
¶
Compare numeric and length constraints (minimum, minItems, ...).
check_nullability
class-attribute
instance-attribute
¶
Compare which fields accept null. For model packages that send None as
null and leave out MISSING fields (v2), not for exclude_none ones (v1).
check_parse_nullability
class-attribute
instance-attribute
¶
Report fields where upstream allows null but the model rejects None
(valid messages fail to parse). Implied by check_nullability; for packages
that never send null (v1).
known
class-attribute
instance-attribute
¶
Finding id to the reason the difference is accepted.
renames
class-attribute
instance-attribute
¶
Upstream definition name to our model name.
load
classmethod
¶
load(path: UPath) -> Conformance
Read conformance.toml; a missing file means no renames or differences.