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

Include ajv-formats by default #2453

Merged
merged 1 commit into from
Jul 5, 2023
Merged

Include ajv-formats by default #2453

merged 1 commit into from
Jul 5, 2023

Conversation

lehni
Copy link
Collaborator

@lehni lehni commented Jul 5, 2023

Closes #2218, #2142, #2146, #2147, #2170

@lehni lehni force-pushed the feature/include-ajv-formats branch from adc845d to 15e677b Compare July 5, 2023 16:19
@lehni lehni merged commit 6b5b300 into master Jul 5, 2023
@lehni
Copy link
Collaborator Author

lehni commented Jul 20, 2023

Released in v3.0.5

@lehni lehni deleted the feature/include-ajv-formats branch July 21, 2023 09:12
@tafel
Copy link

tafel commented Jul 21, 2023

Perhaps it would have been better to mark this as a breaking change. All people already including ajv-format in a custom extended Model will have now an error "Keyword {somekeyword} is already defined".

@lehni
Copy link
Collaborator Author

lehni commented Jul 21, 2023

Ouch, I didn't realize this could happen, my bad. Are you using the onCreateAjv() callback to add the formats? If so, a simple fix in objection could be to only add the formats after, if they haven't been added already. This could be determined with a simple check for the date-time format, for example.

@lehni
Copy link
Collaborator Author

lehni commented Jul 22, 2023

Also, I can roll out a 3.0.6 with this fix in and Node 12 compatibility, if it's of interest.

@lehni
Copy link
Collaborator Author

lehni commented Jul 22, 2023

Fix released in v3.1.1

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