Skip to content

JSON: Schema validation #2609

Open

Description

It would be nice to have JSON schema validation in the JSON extension, whether it be from Ajv or from a different dependency (or a completely custom schema validation engine).

Activity

  1. SharkPool-SP commented on Jul 26, 2026

    @SharkPool-SP
  2. GarboMuffin commented on Jul 27, 2026

    @GarboMuffin
    Member

    SharkPool that is not at all what is being discussed in the issue. They obviously know what json is. They're asking about ways to validate that a JSON is in the right format - as in - the keys and properties are of the expected types. They mentioned ajv as one library for doing this. That's the same library used in scratch-parser validation. They've done their research.

  3. SharkPool-SP commented on Jul 27, 2026

    @SharkPool-SP
    Collaborator

    SharkPool that is not at all what is being discussed in the issue. They obviously know what json is. They're asking about ways to validate that a JSON is in the right format - as in - the keys and properties are of the expected types. They mentioned ajv as one library for doing this. That's the same library used in scratch-parser validation. They've done their research.

    I assumed it was validating the structure format 🤷‍♂️

    My bad king :trollface:

  4. SharkPool-SP commented on Aug 5, 2026

    @SharkPool-SP
    Collaborator

    On second thought this would make sense as a separate extension, for general schema validation.

    Could support strings as well

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

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions