Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

SupportHashable for json validation#10324

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
sydney-runkle merged 3 commits intomainfromhashable-json
Sep 6, 2024
Merged

Conversation

sydney-runkle
Copy link
Contributor

@sydney-runklesydney-runkle commentedSep 5, 2024
edited
Loading

Alternative to#10005 based on#10005 (comment)

Fix#9567

Thanks@kc0506 for the test inspo!

@cloudflare-workers-and-pagesCloudflare Workers and Pages
Copy link

cloudflare-workers-and-pagesbot commentedSep 5, 2024
edited
Loading

Deploying pydantic-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit:418ca00
Status: ✅  Deploy successful!
Preview URL:https://71485969.pydantic-docs.pages.dev
Branch Preview URL:https://hashable-json.pydantic-docs.pages.dev

View logs

@codspeed-hqCodSpeed HQ
Copy link

codspeed-hqbot commentedSep 5, 2024
edited
Loading

CodSpeed Performance Report

Merging#10324 willnot alter performance

Comparinghashable-json (418ca00) withmain (852736c)

Summary

✅ 50 untouched benchmarks

@github-actionsGitHub Actions
Copy link
Contributor

github-actionsbot commentedSep 5, 2024
edited
Loading

Coverage report

This PR does not seem to contain any modification to coverable code.

Copy link
Contributor

@dmontagudmontagu left a comment
edited
Loading

Choose a reason for hiding this comment

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

I think you should add a test for the cases that fail validation from JSON (presumably nested JSON objects/arrays would?). I vaguely recall seeing a version where it would convert arrays to tuples and objects to frozendict; I think we should keep the behavior like this and not do that, but I think it's worth adding a test with a note indicating that it was added to document the current behavior.

Other than that, LGTM

sydney-runkle reacted with thumbs up emojisydney-runkle reacted with heart emoji
@sydney-runklesydney-runkle merged commit0fdf06f intomainSep 6, 2024
62 checks passed
@sydney-runklesydney-runkle deleted the hashable-json branchSeptember 6, 2024 05:36
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@hyperlint-aihyperlint-ai[bot]hyperlint-ai[bot] left review comments

@dmontagudmontagudmontagu approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

model_validate_json cannot validateHashable
2 participants
@sydney-runkle@dmontagu

[8]ページ先頭

©2009-2025 Movatter.jp