-
Notifications
You must be signed in to change notification settings - Fork 46
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
Generate example for time
format
#120
Comments
What about time zone properties? For example |
openapi-sampler uses openapi-sampler/src/samplers/string.js Line 21 in d60cadd
Line 10 in d60cadd
|
Exactly as @c-pius wrote. For example Additionally, following with the RFC 3339 there should be |
I think it would be better to use a format of "partial-time" or "full-time" for clarity and alignment with the RFC 3339. |
@magicmatatjahu you are right, even appears like the discussions from your reference lean towards I don't really have an opinion whether |
@c-pius "partial-time" and "full-time" should be provide for this same cases like I can create PR for that, but after read the issue, which I mentioned it might be better to wait for the official support for the |
As I see the |
This is a feature request.
Would be great if lib supports generation example for
time
format, like in spec:and then output should be:
At the moment lib supports generation for
date
anddate-time
, buttime
should be also supported. As I knowformat
is a open value, so it shouldn't be against the OpenAPI specification link, but maybe there are issues as to whytime
format is not documented.We have a reported issue in our library (which uses
openapi-sampler
) to supportstime
format and we don't want to make example inside library, but want to have support in used package.I can make PR for it if you'll accept my request :)
Btw. Very helpful library :)
The text was updated successfully, but these errors were encountered: