-
Notifications
You must be signed in to change notification settings - Fork 119
Open
Description
Consider this schema:
{
"$id": "https://json.schemastore.org/catalog-info.json",
"$schema": "http://json-schema.org/draft-07/schema",
"type" : "object",
"properties" : {
"a": {
"type" : "string",
"pattern" : "^[a-z]{3}$"
}
},
"required" : ["a"]
}
And this input YAML file:
a: abc
---
a: de
Expected:
instance example.yaml: failed
jsonschema validation failed with 'file:///home/raphael/code/aoksystems/oc-shared-tools/json-schema-validator/test/example.schema.json#'
- at '/a': 'de' does not match pattern '^[a-z]{3}$'
(The output would probably have to be extended with some indication which of the included documents failed.)
Actual:
instance example.yaml: ok
marians
Metadata
Metadata
Assignees
Labels
No labels