Skip to content

docs: update migration guide with date-time breaking change #6110

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

craftsman01
Copy link

related to issue #267 in fluent-json-schema repo

@github-actions github-actions bot added the documentation Improvements or additions to documentation label May 5, 2025
@craftsman01 craftsman01 force-pushed the docs/add-breaking-change-date-time-format branch from eb2cfb0 to b93cc55 Compare May 5, 2025 11:25
@@ -545,6 +545,9 @@ for more information.
This was already deprecated in v4 as `FSTDEP014`,
so you should have already updated your code.

### `time` and `date-time` formats enforce timezone
The updated AJV compiler updates AJV formats which now enforce the use of timezone in `time` and `date-time` format. A workaround is to use `iso-time` and `iso-date-time` formats which support an optional timezone for backwards compatibility. See fastify/ajv-compiler [#127](https://github.com/fastify/ajv-compiler/pull/127) and ajv-validator/ajv-formats [#42](https://github.com/ajv-validator/ajv-formats/pull/42)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this issue is more informative than the other links: fastify/fluent-json-schema#267

@Fdawgs
Copy link
Member

Fdawgs commented May 18, 2025

Thanks for the PR @craftsman01, could you please fix the linting and use the link eomm provided and this should be good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants