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

What would be the best way to deal with Date/datetime type in GET request parameter? #28

Closed
pabloelustondo opened this issue Dec 14, 2016 · 3 comments

Comments

@pabloelustondo
Copy link

we are using this generator for our API we are declaring for now our data parameters as string. Is there a better way?. Any way to declare the format?

@lukeautry
Copy link
Owner

@pabloelustondo There's logic to deal with dates, but it's not accepted as a query parameter right now.

This is an easy fix and I'll push something out shortly and provide some quick usage tips.

@lukeautry
Copy link
Owner

@pabloelustondo This should be possible in 1.0.4; see https://github.com/lukeautry/tsoa/blob/master/tests/integration/server.spec.ts#L132

@pabloelustondo
Copy link
Author

Thanks Luke, it works!

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