Currently for properties we only specify a type.
"location": {"type": "location","name": "Location","properties": {"name": "string","citizens": ["array","person"]}}Maybe we should change this in favor of an object where we can add more specs like a required property.
"location": {"type": "location","name": "Location","properties": {"name": {"type": "string","required": true},"citizens": {"type": ["array","person"]}}Or we just say such integrity checks should be done by the app.. not the schema. What do you think?
Currently for properties we only specify a type.
Maybe we should change this in favor of an object where we can add more specs like a
requiredproperty.Or we just say such integrity checks should be done by the app.. not the schema. What do you think?