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

Endpoint gen additional types #3249

Merged
merged 4 commits into from
Dec 16, 2024

Conversation

gregor-rayman
Copy link
Contributor

Added more handling for the code generation from OpenAPI schema. Strings with specified format are generated as:

  • date -> java.time.LocalDate
  • time -> java.time.LocalTime
  • date-time -> java.time.Instant
  • duration -> java.time.Duration

Also added the possibility to override the generated types in configuration.

gregor-rayman and others added 4 commits December 10, 2024 21:10
…e string formats `date`, `date-time`, `time` and `duration` to be generated as `LocalDate`, `Instant`, `LocalTime` and `Duration`, and also to configure own formart to type mapping.
@gregor-rayman gregor-rayman marked this pull request as ready for review December 15, 2024 10:03
@987Nabil 987Nabil merged commit 0fbf21b into zio:main Dec 16, 2024
35 checks passed
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

Successfully merging this pull request may close these issues.

2 participants