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

type: date is not formatted correctly in typescript #492

Closed
danzel opened this issue Oct 2, 2017 · 0 comments
Closed

type: date is not formatted correctly in typescript #492

danzel opened this issue Oct 2, 2017 · 0 comments

Comments

@danzel
Copy link
Contributor

danzel commented Oct 2, 2017

Similar to #491, but when generating a typescript class with moment field types (or Date fields).

When converting a "type": "date" field to json, we call DateToStringCode -> toISOString(), which generates a date-time, not a date.

ref: https://swagger.io/specification/#document-structure-12

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

1 participant