Skip to content
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

recursion bug on valid JSON schemas #40

Open
chasetec opened this issue Oct 19, 2015 · 0 comments
Open

recursion bug on valid JSON schemas #40

chasetec opened this issue Oct 19, 2015 · 0 comments
Labels

Comments

@chasetec
Copy link

I have a JSON v4 schema that validates with the JSON meta-schema but causes docson to crash with an infinite recursion bug.

{
"myDate": {
            "properties": {},
            "type": "string",
            "pattern": "([0-9][0-9][0-9][0-9])-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([0-1][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]).([0-9][0-9][0-9])Z",
            "description": "some description"
        }
}

The issue is caused by having an empty "properties" on a string. The JSON meta schema implies that all types have a default of an empty properties value. The spirit of the human readable spec seems to imply that it would be silly to add properties to a string or array or other primitive type. Since the meta-schema validates the above schema it would be nice if docson ignored the silly things.

@yanick yanick added the bug label Feb 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants