Skip to main content

PROFILE_FIELD

Constant PROFILE_FIELD 

Source
pub const PROFILE_FIELD: RuleId;
Expand description

A field must be present exactly when the negotiated wire profile defines it

S2C §Versioning of JSON Schema files: the negotiated version selects which schema the messages are read against, and the two tagged versions of S2 JSON differ in one field — DDBC.SystemDescription.present_demand_rate is required in v0.0.2-beta and was removed in v1.0.0, where DDBC.PresentDemandStatus carries it instead (erratum E13). The decoder already refuses the wrong shape on the way in; this is the same rule applied on the way out, so an endpoint learns at the call site rather than from the peer’s INVALID_MESSAGE.