Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle true property value #1644

Merged
merged 1 commit into from
Feb 17, 2025
Merged

Conversation

joshkel
Copy link
Contributor

@joshkel joshkel commented Feb 10, 2025

A JSON Schema of true means to allow anything. It can be useful when extending closed schemas; see https://json-schema.org/understanding-json-schema/reference/object#extending.

Fixes #1643

A JSON Schema of `true` means to allow anything. It can be useful when extending closed schemas; see https://json-schema.org/understanding-json-schema/reference/object#extending.

Fixes josdejong#1643
joshkel added a commit to joshkel/jsoneditor that referenced this pull request Feb 10, 2025
If josdejong#1644 is a more invasive change than is desired, this more minimal fix prevents runtime errors but makes less of an effort to resolve affected properties.

Fixes josdejong#1643
@josdejong
Copy link
Owner

Thanks Josh for fixing and refactoring this 👍

@josdejong josdejong merged commit 2fdbc13 into josdejong:develop Feb 17, 2025
5 checks passed
@josdejong
Copy link
Owner

Your fix is now publish in v10.1.3, thanks again!

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.

TypeError: Cannot use 'in' operator to search for '$ref' in true
2 participants