Skip to content

Tuple items are not scoped in the interactive schema editor #2496

Description

@magic-peach

The interactive schema editor uses getScopesOfParsedJsonSchema (lib/getScopesOfParsedJsonSchema.ts) to figure out which parts of a schema should be clickable. For an array schema it always treats items as a single schema and recurses once.

When items is an array instead (tuple validation), every entry in that array is its own schema, but the function only returns one scope for the whole thing and silently skips every tuple entry. This means keyword highlighting does not work correctly on any page using tuple-style items, including the Draft 2020-12 release notes page and the JSON Schema examples page.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: TriageThis is the initial status for an issue that requires triage.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions