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

Stop strings in arbitrary type fields from automatically converting to UUID #2274

Merged
merged 2 commits into from
Nov 20, 2024

Conversation

nkzou
Copy link
Contributor

@nkzou nkzou commented Nov 20, 2024

Strings should only be deserialized into UUIDs if the type is explicitly UUID - otherwise, random hashes that aren't uuids can be converted unintentionally. The only time both str and UUID is valid for a type is for arbitrary type fields, so this only applies to arbitrary objects and additionalProperties.

Also pins the Sphinx version in pre-commit to stabilize the .rst doc files. (7.4.0 has a slightly different format to ^8.0.0)

@nkzou nkzou requested a review from a team as a code owner November 20, 2024 19:17
@nkzou nkzou merged commit 23e0334 into master Nov 20, 2024
14 checks passed
@nkzou nkzou deleted the kevinzou/addt_prop_uuid_upconversion branch November 20, 2024 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants