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

swagger-js/ui does not show number data type #341

Closed
oblonski opened this issue Mar 31, 2015 · 2 comments
Closed

swagger-js/ui does not show number data type #341

oblonski opened this issue Mar 31, 2015 · 2 comments

Comments

@oblonski
Copy link

I specify my api with the swagger-editor, download it as json and put it as static content on my webserver. Everything works well. However, when I want to display the generated api.json with swagger-ui (the latest from the master branch), it happens that it cannot render data of type "number" and format "double" in the model schema. It just omit these data types. Every other types are rendered correctly. Once I change the type to "integer" it works perfectly.

Here you can find my swagger.yml and .json file as well as two screenshots showing what swagger-ui renders (and not renders)

@oblonski
Copy link
Author

Interestingly, it works with swagger-ui-2.1.8-M1, i.e. numbers are rendered correctly.

@fehguy
Copy link
Contributor

fehguy commented Apr 8, 2015

should be fixed in #353

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