Skip to content

Boolean schemas#135

Open
wol-soft wants to merge 1 commit into
masterfrom
booleanSchemas
Open

Boolean schemas#135
wol-soft wants to merge 1 commit into
masterfrom
booleanSchemas

Conversation

@wol-soft
Copy link
Copy Markdown
Owner

Add boolean schema support (true/false schemas as property and composition values)

Implements JSON Schema boolean schemas (true/false) for properties, composition branches (allOf/anyOf/oneOf/if/then/else/not), items, contains, and pattern properties. A false schema forbids any value; a true schema permits any value without constraint. Adds ForbiddenPatternPropertiesValidator, extends composition validator factories to short-circuit on boolean branches, and consolidates the old FalsePropertySchemaTest into the new Boolean* test suite. Also adds RecursiveDirectoryProviderTest and expands SingleFileProviderTest.

…ition values)

Implements JSON Schema boolean schemas (`true`/`false`) for properties,
composition branches (allOf/anyOf/oneOf/if/then/else/not), items, contains,
and pattern properties. A `false` schema forbids any value; a `true` schema
permits any value without constraint. Adds ForbiddenPatternPropertiesValidator,
extends composition validator factories to short-circuit on boolean branches,
and consolidates the old FalsePropertySchemaTest into the new Boolean* test
suite. Also adds RecursiveDirectoryProviderTest and expands SingleFileProviderTest.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@coveralls
Copy link
Copy Markdown

Coverage Report for CI Build 26374741919

Coverage increased (+0.08%) to 98.638%

Details

  • Coverage increased (+0.08%) from the base build.
  • Patch coverage: 3 uncovered changes across 2 files (385 of 388 lines covered, 99.23%).
  • 2 coverage regressions across 2 files.

Uncovered Changes

File Changed Covered %
src/Model/Validator/Factory/Composition/IfValidatorFactory.php 100 98 98.0%
src/SchemaProvider/RefResolverTrait.php 4 3 75.0%

Coverage Regressions

2 previously-covered lines in 2 files lost coverage.

File Lines Losing Coverage Coverage
src/SchemaProvider/RecursiveDirectoryProvider.php 1 95.65%
src/SchemaProvider/RefResolverTrait.php 1 95.65%

Coverage Stats

Coverage Status
Relevant Lines: 5212
Covered Lines: 5141
Line Coverage: 98.64%
Coverage Strength: 633.12 hits per line

💛 - Coveralls

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