-
Notifications
You must be signed in to change notification settings - Fork 9
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
Error in serializing datetime #35
Comments
Hi @foxpluto
Good news: I even created in another library a method to avoid this kind of scenario, so to fix the error I would only need to replace the built-in It uses a more user-friendly JSONEncoder class that handles those types. |
Wonderful !!! Thanks, |
no ETA for this fix? Sorry to bother... |
Hi @foxpluto I fixed the bug and published a new version of the library where the bug happens 1.0.6. You can upgrade the However, while writing tests and the fix, I also realized that maintaining the exact format of the datetime as in the examples is not obvious because datetimes are parsed automatically by YAML, then serialized using a certain format for JSON (the built-in To maintain the exact format you set for your examples, like
- description: Start time stamp of the returned data interval
- example: 2022-08-17T18:00:00Z
+ example: '2022-08-17T18:00:00Z'
in: query
name: fromInstant
required: false
schema:
format: date-time
type: string
|
Wonderful !!! At least I have my API documentation in order on my site.
And works perfectly. Thanks |
You're welcome 😄 |
I have a quite long openapi file with a lot of date-time like this one:
but I have this error:
Is this a bug?
Regards,
S.
The text was updated successfully, but these errors were encountered: