Skip to content

fix: use correct schema dialect for oas3.0.x and oas2.x#2564

Merged
vadyvas merged 4 commits intomainfrom
fix/use-correct-schema-dialect-for-oas30
Feb 13, 2026
Merged

fix: use correct schema dialect for oas3.0.x and oas2.x#2564
vadyvas merged 4 commits intomainfrom
fix/use-correct-schema-dialect-for-oas30

Conversation

@vadyvas
Copy link
Contributor

@vadyvas vadyvas commented Feb 13, 2026

What/Why/How?

  • Updated schema validation flow to select AJV dialect by spec version:
    • oas2 / oas3_0 -> draft-04 (id)
    • oas3_1 / oas3_2 -> 2020-12 ($id)
  • Updated schema registration to use the proper schema ID key per dialect.

Reference

Testing

Screenshots (optional)

N/A

Check yourself

  • Code changed? - Tested with Redoc/Realm/Reunite (internal)
  • All new/updated code is covered by tests
  • New package installed? - Tested in different environments (browser/node)
  • Documentation update considered

Security

  • The security impact of the change has been considered
  • Code follows company security practices and guidelines

@changeset-bot
Copy link

changeset-bot bot commented Feb 13, 2026

🦋 Changeset detected

Latest commit: 63b2f13

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@redocly/openapi-core Patch
@redocly/cli Patch
@redocly/respect-core Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Feb 13, 2026

CLI Version Mean Time ± Std Dev (s) Relative Performance (Lower is Faster)
cli-latest 3.622s ± 0.026s ▓ 1.00x (Fastest)
cli-next 3.651s ± 0.053s ▓ 1.01x

@github-actions
Copy link
Contributor

github-actions bot commented Feb 13, 2026

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 79.44% (🎯 78%) 6327 / 7964
🔵 Statements 78.88% (🎯 78%) 6537 / 8287
🔵 Functions 83.35% (🎯 82%) 1297 / 1556
🔵 Branches 71.03% (🎯 70%) 4307 / 6063
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/core/src/rules/ajv.ts 93.87% 91.66% 88.88% 97.77% 54, 133
packages/core/src/rules/utils.ts 91.17% 88.88% 100% 90.32% 47, 71, 80-83, 93, 105-108, 189
Generated in workflow #8637 for commit 63b2f13 by the Vitest Coverage Report Action

@vadyvas vadyvas self-assigned this Feb 13, 2026
@vadyvas vadyvas added the snapshot Create experimental release PR label Feb 13, 2026
@github-actions
Copy link
Contributor

📦 A new experimental 🧪 version v0.0.0-snapshot.1770986081 of Redocly CLI has been published for testing.

Install with NPM:

npm install @redocly/cli@0.0.0-snapshot.1770986081
# or
npm install @redocly/openapi-core@0.0.0-snapshot.1770986081
# or
npm install @redocly/respect-core@0.0.0-snapshot.1770986081

⚠️ Note: This is a development build and may contain unstable features.

@vadyvas vadyvas marked this pull request as ready for review February 13, 2026 13:26
@vadyvas vadyvas requested review from a team as code owners February 13, 2026 13:26
Copy link
Collaborator

@tatomyr tatomyr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left minor comments. Otherwise looks good.

@vadyvas vadyvas force-pushed the fix/use-correct-schema-dialect-for-oas30 branch from 1312802 to e591acd Compare February 13, 2026 15:51
@vadyvas vadyvas force-pushed the fix/use-correct-schema-dialect-for-oas30 branch from 1c2a2cf to 63b2f13 Compare February 13, 2026 15:59
@vadyvas vadyvas merged commit 2d2747a into main Feb 13, 2026
40 checks passed
@vadyvas vadyvas deleted the fix/use-correct-schema-dialect-for-oas30 branch February 13, 2026 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

snapshot Create experimental release PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Lint rules for examples require exclusiveMinimum to be number in openapi 3.0.x

3 participants