pub fn required_attributes(model: &Model, schema: &Schema, report: &mut Report)Expand description
Reports required attributes stated as $, and slot-count mismatches.
§Three distinct defects, three distinct rules
- A non-
OPTIONALattribute written$is missing data. - A record with fewer slots than the schema declares is truncated.
- A record with more slots carries data the schema cannot explain.
§Derived slots
EXPRESS DERIVE redeclares an inherited attribute as computed. Part 21
writes such a slot *, never $ and never a value. Both mistakes are
reported, because * and $ mean different things: * says “the schema
computes this”, $ says “nobody stated it”.