Skip to content

Handle true property value#1644

Merged
josdejong merged 1 commit intojosdejong:developfrom
joshkel:true-property-fix
Feb 17, 2025
Merged

Handle true property value#1644
josdejong merged 1 commit intojosdejong:developfrom
joshkel:true-property-fix

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