Skip to content

Show format when viewing model. #1202

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
x12a1f opened this issue Apr 23, 2015 · 5 comments
Closed

Show format when viewing model. #1202

x12a1f opened this issue Apr 23, 2015 · 5 comments

Comments

@x12a1f
Copy link

x12a1f commented Apr 23, 2015

Is it possible to show the format of a field in the model of an object?
For instance, shipDate is of type string and has its format set to date-time. It would be nice if the model can show something like (string: date-time, optional) instead of just (string, optional).

I am referring to this:
selection_106

@iushankin
Copy link

I think it's a good idea.
This model is generated by the code from the swagger-js project.
@webron, @fehguy: let's move this issue into the swagger-js so, I could implement this feature

@zyro23
Copy link

zyro23 commented Apr 23, 2015

for date-time, this might be related: #1183

@webron
Copy link
Contributor

webron commented Apr 24, 2015

It's also related to swagger-api/swagger-js#219.

@yzatslinear
Copy link

Just to be explicit, it would be useful to display any format, not just special ones. For example, if I have type: string, format: foo it should show (string: foo, optional)

@fehguy
Copy link
Contributor

fehguy commented May 8, 2015

see parent issue, #1248

@fehguy fehguy closed this as completed May 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants