Property
One field of a struct, holding its value schema, whether a value must include it, and a description of what it is for.Extends · closed
A variant of the — one of the shapes a schema is allowed to take.
| value The schema the field's value must match. | ||
| required A value of the struct must include this field. Absent means optional. | optional | |
| description What the field is for, for people and for the editors that show it. | optional |
A struct lists its fields under properties, one property per field name. A property wraps a schema and is not a schema itself. value is the schema the field's value must match. required says whether a value of the struct must include the field. description says what the field is for, and the editors show it next to the field.
See also
Struct schema: the variant that holds properties.
Closed map: a struct rejects keys it has no property for.
Extension: adds properties to a parent schema.
Typed documents: how the editors turn properties into fields.
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime
Powered by Seed HypermediaOpen App