Skip to content

UI fails to load a spec if an integer type is missing the format #670

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

Closed
DavidBiesack opened this issue Oct 17, 2014 · 1 comment
Closed

Comments

@DavidBiesack
Copy link

The swagger 2.0 spec says that the format for types is optional:

Primitives have an optional modifier property format.

However, swagger-ui fails to load a spec (with no error messge) if a parameter type is "type" : "integer" but omits either "format" : "int32" or "format" : "int64".

swagger-ui should load such specs that do not contain the format.

See also @webron 's comment on swagger-spec#162

@fehguy
Copy link
Contributor

fehguy commented Oct 17, 2014

fixed in dc84dfc

@fehguy fehguy closed this as completed Oct 17, 2014
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