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.
Has anybody of you an explanation for this or even a solution? Thanks a lot.
--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Well, that's definitely interesting. Just tested it and can easily reproduce it. Can you please open an issue on swagger-js (note, swagger-js and not swagger-ui) with the details as you provided here? The Swagger definitions certainly help.
On Tue, Mar 31, 2015 at 3:47 PM, Stefan Schröder <jsprit.vehi...@gmail.com> wrote:
Hi Ron, thanks a lot for your fast response.
Here is the schema in json/yml as well as two screenshot of how swagger-ui rendered the model. In the model schema lon and lat properties are omitted. However, when looking at the model they are displayed correctly.
On Tuesday, March 31, 2015 at 12:05:24 PM UTC+2, Stefan Schröder wrote: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.
Has anybody of you an explanation for this or even a solution? Thanks a lot.
--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.