Skip to content

Conversation

@Karan-Palan
Copy link

This PR improves the behavior of the ValidExamples linter in the Blaze JSON Schema validator. Previously, the linter would remove the entire examples array if any example failed validation. With this enhancement, the linter now selectively removes only the invalid examples while preserving the valid ones.

Changes:

  • Modified ValidExamples implementation to track invalid indices and remove only invalid examples.
  • Updated tests to reflect the new behavior.
  • Added new test cases to demonstrate the improved functionality.

Benefits:

  • Preserves valid examples in the schema, improving user experience and schema documentation.

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.

2 participants