Skip to content

Add uniqueItems to set and frozenset json schema - #984

Merged
jcrist merged 5 commits into
msgspec:mainfrom
sobolevn:add-uniqueItems
Apr 8, 2026
Merged

jcrist merged 5 commits into
msgspec:mainfrom
sobolevn:add-uniqueItems

Conversation

@sobolevn

@sobolevn sobolevn commented Mar 3, 2026 •

Copy link
Copy Markdown
Member

While working on django-modern-rest, I've noticed that uniqueItems is missing for set and frozenset in json schema.

Docs: https://json-schema.org/understanding-json-schema/reference/array#uniqueItems

I think that this is quite easy to add and has better semantics.

@sobolevn

sobolevn commented Mar 3, 2026

Copy link
Copy Markdown
Member Author

These two failures do not seem related, they also happen on #983

@sobolevn

sobolevn commented Apr 8, 2026

Copy link
Copy Markdown
Member Author

Now it passes, thanks!

@jcrist jcrist left a comment

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.

Thanks!

@jcrist
jcrist merged commit 46fe6b0 into msgspec:main Apr 8, 2026
21 checks passed
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