Skip to content

undetected invalid JSON field #171

@AlexisAuger

Description

@AlexisAuger

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": "blabla@foo.com"
        }
    }
}

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions