asyncapi/java-spring-template

Fix date-time generation

Closed this issue ยท 1 comments

Describe the bug

In Json schema date-time and time has a time zone https://json-schema.org/understanding-json-schema/reference/string.html#dates-and-times
In the used generated type LocalDateTime the time zone is not supported.

How to Reproduce

use schema object:

type: string
format: date-time

Expected behavior

OffsetDateTime is used for date-time and OffsetTime is used for time

๐ŸŽ‰ This issue has been resolved in version 0.21.1 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€