Skip to content

fix(http): honor OAS 3.1 schema dialect defaults - #2843

Open
cyphercodes wants to merge 1 commit into
stoplightio:mainfrom
cyphercodes:fix/oas31-json-schema-dialect
Open

fix(http): honor OAS 3.1 schema dialect defaults#2843
cyphercodes wants to merge 1 commit into
stoplightio:mainfrom
cyphercodes:fix/oas31-json-schema-dialect

Conversation

@cyphercodes

Copy link
Copy Markdown

Addresses #2797

Summary

Prism now falls back to the OpenAPI document's JSON Schema dialect when validating schema objects that do not declare their own $schema. For OpenAPI 3.1 documents, this selects the existing AJV 2020-12 instance by default so keywords such as unevaluatedProperties are enforced instead of silently falling through to draft-07.

Checklist

  • The basics
    • I tested these changes manually in my local or dev environment
  • Tests
    • Added or updated
    • N/A
  • Event Tracking
    • I added event tracking and followed the event tracking guidelines
    • N/A
  • Error Reporting
    • I reported errors and followed the error reporting guidelines
    • N/A

Additional context

Local verification:

  • npm ci
  • npm test -- packages/http/src/validator/validators/__tests__/utils.spec.ts --runInBand
  • npm run build
  • git diff --check HEAD^ HEAD

@cyphercodes
cyphercodes requested a review from a team as a code owner August 14, 2026 15:31
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