mock-json-schema
mock-json-schema copied to clipboard
[question]: is it possible to mock self referencing?
a self referencing json schema like this, can mock-json-schema mock this?
{
"type": "object",
"properties": {
"name": { "type": "string" },
"tree": { "$ref": "#/definitions/tree" }
},
"definitions": {
"tree": {
"type": "object",
"properties": {
"value": { "type": "string" },
"branches": {
"type": "array",
"items": { "$ref": "#/definitions/tree" },
"minItems": 1
}
},
"required": ["value"]
}
}
}
At the moment recursive mocking is not supported. PRs accepted!