Skip to content

Conversation

@davidhewitt
Copy link
Contributor

@davidhewitt davidhewitt commented Jul 25, 2023

Change Summary

Follow up to #6831.

We can simplify the InnerSchemaValidator built for UUID to just use pydantic-core directly. This has only one observable change according to the tests, which is that the serializer will now raise a warning when not serializing a UUID instance. (Hence the test change.)

Related issue number

N/A

Checklist

  • The pull request title is a good summary of the changes - it will be used in the changelog
  • Unit tests for the changes exist
  • Tests pass on CI
  • Documentation reflects the changes where applicable
  • My PR is ready to review, please add a comment including the phrase "please review" to assign reviewers

Selected Reviewer: @dmontagu

@cloudflare-workers-and-pages
Copy link

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: d30851e
Status: ✅  Deploy successful!
Preview URL: https://917128b4.pydantic-docs2.pages.dev
Branch Preview URL: https://dh-uuid-schema.pydantic-docs2.pages.dev

View logs

@davidhewitt
Copy link
Contributor Author

please review

@davidhewitt davidhewitt merged commit 3c02267 into main Jul 25, 2023
@davidhewitt davidhewitt deleted the dh/uuid-schema branch July 25, 2023 14:12
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.

4 participants