Skip to content

fix: remove duplicate allOf and maxItems entries in draft2020-12 KNOW…#865

Open
Sagar-6203620715 wants to merge 1 commit intojson-schema-org:mainfrom
Sagar-6203620715:fix-remove-duplicate-keywords
Open

fix: remove duplicate allOf and maxItems entries in draft2020-12 KNOW…#865
Sagar-6203620715 wants to merge 1 commit intojson-schema-org:mainfrom
Sagar-6203620715:fix-remove-duplicate-keywords

Conversation

@Sagar-6203620715
Copy link

In bin/jsonschema_suite, the "draft2020-12" block of the KNOWN dict has "allOf" and "maxItems" each listed twice on consecutive lines (283–284, 303–304). Python sets deduplicate silently so behaviour is unaffected, but the redundancy is misleading to readers and a hazard if the structure is ever changed to a list.

Fix: remove one instance of each duplicate in the "draft2020-12" block only. No other draft blocks are affected. Verified with tox.

…N set

Signed-off-by: Sagar Choudhary <sagar6203620715@gmail.com>
@Sagar-6203620715 Sagar-6203620715 requested a review from a team as a code owner March 7, 2026 06:52
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.

1 participant