Skip to content

update pydantic-core to 2.4.0#6831

Merged
samuelcolvin merged 3 commits intomainfrom
dh/core-2.4
Jul 24, 2023
Merged

update pydantic-core to 2.4.0#6831
samuelcolvin merged 3 commits intomainfrom
dh/core-2.4

Conversation

@davidhewitt
Copy link
Copy Markdown
Collaborator

Change Summary

Updates pydantic-core to 2.4.0.

I've cherry-picked the commit from #6711 by @JeanArhancet to implement the new UUID support (many thanks).

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

@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 10b72a0
Status: ✅  Deploy successful!
Preview URL: https://9416c92c.pydantic-docs2.pages.dev
Branch Preview URL: https://dh-core-2-4.pydantic-docs2.pages.dev

View logs

schema = core_schema.lax_or_strict_schema(
lax_schema=lax,
strict_schema=strict,
schema = core_schema.uuid_schema(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Shouldn't we use the InnerSchemaValidator here?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think this is fine.

Copy link
Copy Markdown
Member

@samuelcolvin samuelcolvin left a comment

Choose a reason for hiding this comment

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

LGTM

@samuelcolvin samuelcolvin merged commit 55e0985 into main Jul 24, 2023
@samuelcolvin samuelcolvin deleted the dh/core-2.4 branch July 24, 2023 19:31
@JeanArhancet JeanArhancet mentioned this pull request Jul 24, 2023
5 tasks
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.

3 participants