Closed GrantBirki closed 1 year ago
Violations:
[
{
"file": "./test/test1.yaml",
"errors": [
{
"path": "person.age",
"message": "person.age is required."
},
{
"path": "test",
"message": "test is not present in schema"
},
{
"path": "test2",
"message": "test2 is not present in schema"
}
]
},
{
"file": "./test/schemas/schema.yml",
"errors": [
{
"path": "person.name.first_name",
"message": "person.name.first_name must be of type String."
},
{
"path": "person.age",
"message": "person.age must be of type Number."
},
{
"path": "person.employeed",
"message": "person.employeed must be of type Boolean."
},
{
"path": "person.hobbies.0",
"message": "person.hobbies.0 must be of type String."
},
{
"path": "person.name.first_name.type",
"message": "person.name.first_name.type is not present in schema"
},
{
"path": "person.age.type",
"message": "person.age.type is not present in schema"
},
{
"path": "person.age.required",
"message": "person.age.required is not present in schema"
},
{
"path": "person.employeed.type",
"message": "person.employeed.type is not present in schema"
},
{
"path": "person.hobbies.0.type",
"message": "person.hobbies.0.type is not present in schema"
}
]
}
]
Violations:
[
{
"file": "./test/test1.json",
"errors": [
{
"path": null,
"message": "must have required property 'foo'"
}
]
},
{
"file": "./test/schemas/schema.json",
"errors": [
{
"path": null,
"message": "must have required property 'foo'"
}
]
}
]
Violations:
[
{
"file": "./test/test1.yaml",
"errors": [
{
"path": "person.age",
"message": "person.age is required."
},
{
"path": "test",
"message": "test is not present in schema"
},
{
"path": "test2",
"message": "test2 is not present in schema"
}
]
},
{
"file": "./test/schemas/schema.yml",
"errors": [
{
"path": "person.name.first_name",
"message": "person.name.first_name must be of type String."
},
{
"path": "person.age",
"message": "person.age must be of type Number."
},
{
"path": "person.employeed",
"message": "person.employeed must be of type Boolean."
},
{
"path": "person.hobbies.0",
"message": "person.hobbies.0 must be of type String."
},
{
"path": "person.name.first_name.type",
"message": "person.name.first_name.type is not present in schema"
},
{
"path": "person.age.type",
"message": "person.age.type is not present in schema"
},
{
"path": "person.age.required",
"message": "person.age.required is not present in schema"
},
{
"path": "person.employeed.type",
"message": "person.employeed.type is not present in schema"
},
{
"path": "person.hobbies.0.type",
"message": "person.hobbies.0.type is not present in schema"
}
]
}
]
Violations:
[
{
"file": "./test/schemas/schema.json",
"errors": [
{
"path": null,
"message": "must have required property 'foo'"
}
]
}
]
Violations:
[
{
"file": "./test/test1.yaml",
"errors": [
{
"path": "person.age",
"message": "person.age is required."
},
{
"path": "test",
"message": "test is not present in schema"
},
{
"path": "test2",
"message": "test2 is not present in schema"
}
]
},
{
"file": "./test/schemas/schema.yml",
"errors": [
{
"path": "person.name.first_name",
"message": "person.name.first_name must be of type String."
},
{
"path": "person.age",
"message": "person.age must be of type Number."
},
{
"path": "person.employeed",
"message": "person.employeed must be of type Boolean."
},
{
"path": "person.hobbies.0",
"message": "person.hobbies.0 must be of type String."
},
{
"path": "person.name.first_name.type",
"message": "person.name.first_name.type is not present in schema"
},
{
"path": "person.age.type",
"message": "person.age.type is not present in schema"
},
{
"path": "person.age.required",
"message": "person.age.required is not present in schema"
},
{
"path": "person.employeed.type",
"message": "person.employeed.type is not present in schema"
},
{
"path": "person.hobbies.0.type",
"message": "person.hobbies.0.type is not present in schema"
}
]
}
]
Violations:
[
{
"file": "./test/test1.json",
"errors": [
{
"path": "/foo",
"message": "must be integer"
}
]
},
{
"file": "./test/schemas/schema.json",
"errors": [
{
"path": null,
"message": "must have required property 'foo'"
}
]
}
]
Violations:
[
{
"file": "./test/test1.yaml",
"errors": [
{
"path": "person.age",
"message": "person.age is required."
},
{
"path": "test",
"message": "test is not present in schema"
},
{
"path": "test2",
"message": "test2 is not present in schema"
}
]
},
{
"file": "./test/schemas/schema.yml",
"errors": [
{
"path": "person.name.first_name",
"message": "person.name.first_name must be of type String."
},
{
"path": "person.age",
"message": "person.age must be of type Number."
},
{
"path": "person.employeed",
"message": "person.employeed must be of type Boolean."
},
{
"path": "person.hobbies.0",
"message": "person.hobbies.0 must be of type String."
},
{
"path": "person.name.first_name.type",
"message": "person.name.first_name.type is not present in schema"
},
{
"path": "person.age.type",
"message": "person.age.type is not present in schema"
},
{
"path": "person.age.required",
"message": "person.age.required is not present in schema"
},
{
"path": "person.employeed.type",
"message": "person.employeed.type is not present in schema"
},
{
"path": "person.hobbies.0.type",
"message": "person.hobbies.0.type is not present in schema"
}
]
}
]
Violations:
[
{
"file": "./test/test1.json",
"errors": [
{
"path": "/foo",
"message": "must be integer"
}
]
}
]
Violations:
[
{
"file": "./test/test1.yaml",
"errors": [
{
"path": "person.age",
"message": "person.age is required."
},
{
"path": "test",
"message": "test is not present in schema"
},
{
"path": "test2",
"message": "test2 is not present in schema"
}
]
}
]
JSON and YAML Validation Results
YAML Validation Results
Violations: