Skip to content

Conversation

@Karan-Palan
Copy link
Contributor

@Karan-Palan Karan-Palan commented Sep 1, 2025

Description

ref #670 (comment)

  1. Created a jsonschema lint job in CI to check linting issues and commit the fixed schema files

  2. Linting rules fixed:

    • Unknown keywords prefixed: All custom keywords like errorMessage, $anchor, and spectral-runtime were prefixed with x- to become x-errorMessage, x-$anchor, and x-spectral-runtime
    • Unnecessary allOf wrappers removed: The complex allOf structures were simplified for better performance

Note

I, along with Juan (JSON Schema TSC member) are defining linting rules for JSON Schema as a Part of a GSoC (Google Summer of code) project here - https://github.com/Karan-Palan/JSON-Schema-Linting, and implementing their auto-fixes here - https://github.com/sourcemeta/jsonschema/blob/main/docs/lint.markdown. We have recently added many rules prefixing unknown keywords with x- which will be introduced in the newer JSON Schema drafts.

@Karan-Palan Karan-Palan marked this pull request as draft September 1, 2025 06:30
Copy link
Owner

@daveshanley daveshanley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! thank you!

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.

3 participants