Skip to content
Snippets Groups Projects
Commit 31097095 authored by Alvaro Cabrera's avatar Alvaro Cabrera
Browse files

All combinations must resolve recursively; fix

parent a739fdfa
No related branches found
No related tags found
No related merge requests found
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
[
{
"description": "sub-schema mixins",
"schemas": [
{
"type": "object",
"definitions": {
"inner": {
"aString": {
"allOf": [
{ "type": "string" },
{ "$ref": "#/definitions/rules" }
]
}
},
"rules": {
"allOf": [
{ "$ref": "#/definitions/twoChars" },
{ "$ref": "#/definitions/asEmail" }
]
},
"twoChars": {
"minLength": 10
},
"asEmail": {
"faker": "internet.email"
}
},
"properties": {
"anArray": {
"type": "array",
"items": {
"type": "object",
"properties": {
"allOf": [
{ "$ref": "#/definitions/inner" }
]
},
"required": ["aString"]
}
}
},
"required": ["anArray"]
}
],
"tests": [
{
"description": "should combine recursively",
"schema": "schemas.0",
"valid": true
}
]
}
]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment