-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Any
@id
- for referencing across schema and to other schemasdescription
- user description of type
String
minLength
- string validationmaxLength
- string validationpattern
- string validation
String
,Number
,Date
,DateTime
,Property
min
- minimum valid value (e.g.1900-01-01
,aaa
,1
)max
- maximum valid value (e.g.2010-01-01
,bbb
,9
)
Intersection
,Union
types
- list of valid types
List
minItems
- minimum number of itemsmaxItems
- maximum number of items
Object
properties
- list of valid propertiesadditionalProperties
- validate additional properties not matched (e.g. "force invalid here")
Property
,Object
minProperties
- minimum matching properties when using key schemamaxProperties
- maximum matching properties when using key schema
Property
key
- allow key to be a schema or primitive valuerequired
- equal tominProperties == 1
Tuple
tuple
- list of valid properties for ordered tuple