-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Here are some things I didn't find cool about json schemas:
- type
Intis out of the documentation but its schema is still present. - little endian numbers are not in the specification docs but have schemas.
- the datatype.json schema seems to be unused by the validator (something else may depend on it).
- the latest version of ajv errors because strict mode isn't respected.
The strict mode error doesn't mean much except the schema has something unclear or meaningless. Validation for strict mode or not is identical. For example in the container schema there is a non necessary additionalItems which annoyingly throws an error if strict mode is on.
{
"type":"array",
"items":{
"type":"object",
"properties":{
"anon":{
"type":"boolean"
},
"name":{
},
"type":{
"$ref":"dataType"
}
},
"oneOf":[
{
"required":[
"anon"
]
},
{
"required":[
"name"
]
}
],
"required":[
"type"
],
"additionalProperties":false
},
"additionalItems":false
}Metadata
Metadata
Assignees
Labels
No labels