Skip to content
Snippets Groups Projects
Commit f20e5b60 authored by Alvaro Cabrera Durán's avatar Alvaro Cabrera Durán
Browse files

Add spec for #530

parent 95e2b93d
Branches
No related tags found
No related merge requests found
[
{
"description": "jsf.resolve() hangs with circular reference when alwaysFakeOptionals is true",
"tests": [
{
"description": "should resolve circular-refs now",
"schema": {
"type": "object",
"definitions": {
"collectionDef": {
"additionalProperties": false,
"properties": {
"a": {
"items": {
"$ref": "#/definitions/aDef"
},
"type": "array"
},
"b": {
"type": "string"
}
},
"type": "object",
"required": [
"b",
"a"
]
},
"aDef": {
"additionalProperties": true,
"properties": {
"subA": {
"items": {
"$ref": "#/definitions/aDef"
},
"type": "array"
},
"b": {
"type": "string"
}
},
"type": "object"
}
},
"properties": {
"name": {
"type": "string",
"faker": "name.findName"
},
"email": {
"type": "string",
"faker": "internet.email"
},
"collection": {
"$ref": "#/definitions/collectionDef"
}
},
"required": [
"name"
]
},
"valid": true
}
]
}
]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment