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

Petstore Swagger Spec is Invalid? #6

Closed
arnm opened this issue Apr 19, 2015 · 2 comments
Closed

Petstore Swagger Spec is Invalid? #6

arnm opened this issue Apr 19, 2015 · 2 comments

Comments

@arnm
Copy link

arnm commented Apr 19, 2015

I ran the parser against the PetStore Spec and it was invalid. I got the following error message:

message: "Error in Swagger definition ↵SyntaxError: Array is too short (0), minimum 1 ↵Data path: "/paths/~1store~1inventory/get/parameters" ↵Schema path: "/properties/paths/patternProperties/^~1/properties/get/properties/parameters/minItems"↵"

Is this correct? I expected the example spec Swagger uses to be valid....

@JamesMessinger
Copy link
Member

Yeah, this was a bug in the Swagger 2.0 Schema. It was fixed last month, but they haven't published the updated schema to npm yet. Maybe I should consider pulling the schema directly from their GitHub repo instead of npm.

@JamesMessinger
Copy link
Member

Good news! The Swagger team updated their npm package, so do an npm update and this issue should be fixed. You can also test it online

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

2 participants