You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
OpenAPI documentation suggests that both date and date-time formats should be RFC3339 compliant, but the default for Python is not, as it is missing a colon in the timezone offset field. (%Y-%m-%dT%H:%M:%S%z).
openapi-generator version
7.11.0
OpenAPI declaration file content or url
timestamp:
type: string
format: date-time
Generation Details
Steps to reproduce
Add a date-time formatted string field as a parameter, the generated python code will send timestamps in the format (%Y-%m-%dT%H:%M:%S%z) e.g. 2025-03-25T12:32:00+0900
Related issues/PRs
Suggest a fix
In Python 3.12+, changing the %z directive to %:z will add a colon to the timezone offset, making the timestamp RFC3339 compliant.
The text was updated successfully, but these errors were encountered:
Bug Report Checklist
Description
OpenAPI documentation suggests that both date and date-time formats should be RFC3339 compliant, but the default for Python is not, as it is missing a colon in the timezone offset field. (%Y-%m-%dT%H:%M:%S%z).
openapi-generator version
7.11.0
OpenAPI declaration file content or url
Generation Details
Steps to reproduce
Add a date-time formatted string field as a parameter, the generated python code will send timestamps in the format (%Y-%m-%dT%H:%M:%S%z) e.g. 2025-03-25T12:32:00+0900
Related issues/PRs
Suggest a fix
In Python 3.12+, changing the %z directive to %:z will add a colon to the timezone offset, making the timestamp RFC3339 compliant.
The text was updated successfully, but these errors were encountered: