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

undetected invalid JSON field #171

Open
AlexisAuger opened this issue May 4, 2017 · 0 comments
Open

undetected invalid JSON field #171

AlexisAuger opened this issue May 4, 2017 · 0 comments

Comments

@AlexisAuger
Copy link

The field included in my JSON a below_note_ doesn't exist in the swagger specification 2.0

{
    "swagger": "2.0",
    "info": {
        "version": "1.0.0",
        "title": "title",
        "description": "descritpion",
        "note": "mynote",
        "contact": {
            "name": "myname",
            "email": "[email protected]"
        }
    }
}

when i run:

swagger-flex -s doc/*.json

It returns : Validation passed

When i test the code here i get an error in this editor
http://editor.swagger.io/#/

the error is:

Errors
Schema error at info
additionalProperty "note" exists in when not allowed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant