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
According to my reading of the JSON Schema Spec, the answer is no. required array can contain elements which are not in the properties dictionary. The example schema in question seems to be valid....
Answer
#5: Post edited
According to my reading of the [JSON Schema Spec](https://json-schema.org/draft/2020-12/json-schema-validation#name-required), the answer is **no*.* `required` array can contain elements which are not in the properties `dictionary`.- The example schema in question seems to be valid.
- Semantically it means that the `cookies` property must exist for the JSON to pass validation, but it doesn't matter what type of property it is.
- According to my reading of the [JSON Schema Spec](https://json-schema.org/draft/2020-12/json-schema-validation#name-required), the answer is **no.** `required` array can contain elements which are not in the properties `dictionary`.
- The example schema in question seems to be valid.
- Semantically it means that the `cookies` property must exist for the JSON to pass validation, but it doesn't matter what type of property it is.
#4: Post edited
According to my reading of the [JSON Schema Spec](https://json-schema.org/draft/2020-12/json-schema-validation#name-required), the answer is **no**, `required` array can contain elements not in the properties `dictionary`.- The example schema in question seems to be valid.
- Semantically it means that the `cookies` property must exist for the JSON to pass validation, but it doesn't matter what type of property it is.
- According to my reading of the [JSON Schema Spec](https://json-schema.org/draft/2020-12/json-schema-validation#name-required), the answer is **no*.* `required` array can contain elements which are not in the properties `dictionary`.
- The example schema in question seems to be valid.
- Semantically it means that the `cookies` property must exist for the JSON to pass validation, but it doesn't matter what type of property it is.
#3: Post edited
- According to my reading of the [JSON Schema Spec](https://json-schema.org/draft/2020-12/json-schema-validation#name-required), the answer is **no**, `required` array can contain elements not in the properties `dictionary`.
Semantically it means that the `cookies` property must exist for the JSON to pass validation, but it doesn't matter what type of property it is.
- According to my reading of the [JSON Schema Spec](https://json-schema.org/draft/2020-12/json-schema-validation#name-required), the answer is **no**, `required` array can contain elements not in the properties `dictionary`.
- The example schema in question seems to be valid.
- Semantically it means that the `cookies` property must exist for the JSON to pass validation, but it doesn't matter what type of property it is.
#2: Post edited
According to my reading of the [JSON Schema Spec](https://json-schema.org/draft/2020-12/json-schema-validation#name-required), the answer is **no**, `required` array can contain elements no in the properties `dictionary`.- Semantically it means that the `cookies` property must exist for the JSON to pass validation, but it doesn't matter what type of property it is.
- According to my reading of the [JSON Schema Spec](https://json-schema.org/draft/2020-12/json-schema-validation#name-required), the answer is **no**, `required` array can contain elements not in the properties `dictionary`.
- Semantically it means that the `cookies` property must exist for the JSON to pass validation, but it doesn't matter what type of property it is.
#1: Initial revision
According to my reading of the [JSON Schema Spec](https://json-schema.org/draft/2020-12/json-schema-validation#name-required), the answer is **no**, `required` array can contain elements no in the properties `dictionary`. Semantically it means that the `cookies` property must exist for the JSON to pass validation, but it doesn't matter what type of property it is.