Skip to content

feat: update to latest json schema test suite #821

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

DannyvdSluijs
Copy link
Collaborator

This pull request updates the json-schema/json-schema-test-suite dependency to a newer version and introduces a new test suite for validating JSON schemas. The goal here is to have a quicker turnaround then just the bowtie reports. The most important changes are grouped below:

Dependency Updates:

  • Updated json-schema/json-schema-test-suite dependency in composer.json from version 1.2.0 to ^23.2 and updated the package version and reference in the repositories section to match the new version. [1] [2]

New Test Suite:

  • Added a new JsonSchemaTestSuite class in tests/JsonSchemaTestSuite.php to run validation tests using the json-schema/json-schema-test-suite. This includes:
    • A testIt method to validate test cases and assert results.
    • A casesDataProvider method to dynamically load test cases from the json-schema-test-suite repository, skipping certain drafts.
    • A loadRemotesIntoStorage helper method to load remote schemas into the schema storage.

@DannyvdSluijs DannyvdSluijs force-pushed the upgrade-json-schema-test-suite branch from 45e4b9e to 64ad0c7 Compare May 2, 2025 12:21
@DannyvdSluijs DannyvdSluijs force-pushed the upgrade-json-schema-test-suite branch 3 times, most recently from 970acdd to 8875da9 Compare May 2, 2025 13:40
@DannyvdSluijs DannyvdSluijs force-pushed the upgrade-json-schema-test-suite branch from ee860de to 1e458b3 Compare May 13, 2025 19:23
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.

1 participant