Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
In a JSON schema, do the required properties need to be a subset of properties? E.g. is this a valid schema, even though cookies isn't mentioned in properties? { "type": "object", "properti...
#2: Post edited
Do the elements of required array need to be defined in properties dictionary in JSON schema?
- Do the elements of 'required' array need to be defined in 'properties' dictionary in JSON schema?
#1: Initial revision
Do the elements of required array need to be defined in properties dictionary in JSON schema?
In a JSON schema, do the `required` properties need to be a subset of `properties`? E.g. is this a valid schema, even though `cookies` isn't mentioned in `properties`? ```json { "type": "object", "properties": { "tea": { "type": "string" } }, "required": [ "tea", "cookies" ] } ```