required : Array<String>

required

Array<String>

An object instance is valid against this keyword if every item in the array is the name of a property in the instance.

Value This keyword must be set to an array of unique strings
Kind Assertion
Applies To Object
Dialect Draft 6
Changed In Draft 4
Introduced In Draft 3
Vocabulary Validation
Specification https://json-schema.org/draft-06/draft-wright-json-schema-validation-01#rfc.section.6.17
Metaschema http://json-schema.org/draft-06/schema#
Official Tests draft6/required.json
Default []
Annotation None
Affected By None
Affects None
Also See