-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stack level too deep #335
Comments
It hadn't really come up yet, but perhaps there is no time like the present. Could you perhaps provide a bit more insight into what you are trying to do and a sample repro schema? Thanks! |
I am trying to model a (subset) of Facebook Graph API, and for example for the entity "comment" I came up the following json schema (simplified here but stil reproduces the bug): {
"title": "Comment entity",
"description": "This entity represents a comment.",
"id": "http://schema.neosperience.com/facebook-services/comment",
"type": "object",
"definitions": {
"identity": {
"$ref": "/comment#/definitions/id"
},
"id": {
"type": "string",
"description": "The identifier of the comment."
},
"message": {
"type": "string",
"description": "The comment text."
},
"comments": {
"description": "Comments made on this comment.",
"type": "array",
"items": {
"$ref": "/comment"
}
}
},
"properties": {
"id": {
"$ref": "/comment#/definitions/id"
},
"comments": {
"$ref": "/comment#/definitions/comments"
},
"message": {
"$ref": "/comment#/definitions/message"
}
},
"links": []
} I guess the problem is the recursive / circular reference made from the The
|
I am working with a schema that has recursive references (eg. comments on comments) and the document generator fails with the following error:
Is there any support planned for recursive schemas?
The text was updated successfully, but these errors were encountered: