Skip to content

feat: implement numeric exclusive bounds handling for JSON schema draft 07 and above#74

Merged
b41ex merged 9 commits into
developfrom
feature/exclusive-min-max
May 20, 2026
Merged

feat: implement numeric exclusive bounds handling for JSON schema draft 07 and above#74
b41ex merged 9 commits into
developfrom
feature/exclusive-min-max

Conversation

@b41ex
Copy link
Copy Markdown
Collaborator

@b41ex b41ex commented May 10, 2026

feat: implement numeric exclusive bounds handling for JSON schema draft 07 and above

  • add adapter for OAS 3.0 to 3.1 comparison

feat: classify changes to number validation keywords that result in accepted values set expanded as risky instead of breaking in response scope

  • maximum, minimum, exclusiveMaximum, exclusiveMinimum (both JSON Schema 04 and above variances)
  • changed classification for following existing cases:
    • mark-maximum-value-as-inclusive-for-number-property
    • mark-minimum-value-as-inclusive-for-number-property
    • increase-maximum-for-number-property
    • remove-maximum-for-number-property
    • decrease-minimum-for-number-property
    • remove-minimum-for-number-property

refactor: add compatibility suite tests for numeric exclusiveMinimum/exclusiveMaximum

  • change-from-exclusive-maximum-to-inclusive-maximum
  • change-from-exclusive-minimum-to-inclusive-minimum
  • change-from-inclusive-maximum-to-exclusive-maximum
  • change-from-inclusive-minimum-to-exclusive-minimum
  • remove-exclusive-minimum
  • remove-exclusive-maximum
  • increase-exclusive-maximum-value
  • decrease-exclusive-maximum-value
  • increase-exclusive-minimum-value
  • decrease-exclusive-minimum-value
  • add-exclusive-minimum
  • add-exclusive-maximum
  • replace-boolean-exclusive-maximum-to-numeric
  • replace-boolean-exclusive-minimum-to-numeric

b41ex added 5 commits May 8, 2026 16:17
…ccepted values set expanded as `risky` instead of `breaking` in `response` scope

maximum, minimum, exclusiveMaximum, exclusiveMinimum (both JSON Schema 04 and above variances)
Comment thread src/jsonSchema/jsonSchema.numeric-bounds.ts
Comment thread src/jsonSchema/jsonSchema.numeric-bounds.ts
Comment thread src/jsonSchema/jsonSchema.numeric-bounds.ts
Comment thread src/jsonSchema/jsonSchema.numeric-bounds.ts
Comment thread src/jsonSchema/jsonSchema.exclusive-bounds.ts Outdated
Comment thread src/jsonSchema/jsonSchema.rules.ts Outdated
Comment thread test/compatibility-suites/schemas/schema-test-runner-general.ts
Comment thread test/compatibility-suites/schemas/schema-test-runner-general.ts
Comment thread test/compatibility-suites/schemas/schema-test-runner-general.ts
Comment thread src/jsonSchema/jsonSchema.numeric-bounds.ts
@b41ex b41ex requested review from JayLim2 and makeev-pavel May 14, 2026 15:24
Comment thread src/jsonSchema/jsonSchema.numeric-bounds.ts
Comment thread src/jsonSchema/jsonSchema.numeric-bounds.ts
@b41ex b41ex merged commit 4669484 into develop May 20, 2026
14 checks passed
@b41ex b41ex deleted the feature/exclusive-min-max branch May 20, 2026 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request refactor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ASV] Support for exclusiveMinimum and exclusiveMaximum as numeric values

3 participants