-
-
Notifications
You must be signed in to change notification settings - Fork 98
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
Use the RFC3339 standard for dates, instead of a custom format #265
Comments
Hi @Frontrider thank you for checking this out. |
Thank you, I believe that this would be really good for Godot as the community can start to experiment with how to interact with the asset library, and that is invaluable. As a reference because it might be useful to others, this is how I got it to work: modify_date:
type: string
format: date-time
#vendor extension to support annotations. Adds the data that the json parser needs to understand the format.
x-setter-extra-annotation: "@com.fasterxml.jackson.annotation.JsonFormat(pattern = \"yyyy-MM-dd HH:mm:ss\")"
description: >
The date on which the asset entry was last updated.
Note that entries can be edited independently of new asset versions being released. Then I had to set the |
Hello!
I'm going off of @fenix-hub 's work on the openapi specifications for godot's api, and I attempted to use it with a java client.
#255
The asset library's API uses a custom date format instead of using the internet standard, and it breaks the clients you could produce with that. This is the same format used for HTTP headers and such.
https://www.rfc-editor.org/rfc/rfc3339
An example from the standard's documentation:
1985-04-12T23:20:50.52Z
Same in godot's format:
1985-04-12 23:20:50
The text was updated successfully, but these errors were encountered: