Skip to content

fix: do not fail linting when examples structure is invalid#2539

Merged
tatomyr merged 1 commit intomainfrom
fix/examples-validation
Feb 5, 2026
Merged

fix: do not fail linting when examples structure is invalid#2539
tatomyr merged 1 commit intomainfrom
fix/examples-validation

Conversation

@tatomyr
Copy link
Collaborator

@tatomyr tatomyr commented Feb 5, 2026

What/Why/How?

Fixed an issue where improperly structured OpenAPI examples caused the linter to fail.

Reference

Discovered internally.

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 5, 2026

🦋 Changeset detected

Latest commit: 955b479

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 5, 2026

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 78.61% (🎯 78%) 6132 / 7800
🔵 Statements 78.05% (🎯 78%) 6338 / 8120
🔵 Functions 82.31% (🎯 82%) 1247 / 1515
🔵 Branches 70.33% (🎯 70%) 4187 / 5953
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/core/src/rules/common/no-invalid-parameter-examples.ts 100% 100% 100% 100%
packages/core/src/rules/common/no-invalid-schema-examples.ts 100% 100% 100% 100%
packages/core/src/rules/oas3/no-invalid-media-type-examples.ts 94.44% 87.5% 100% 100% 39
Generated in workflow #8494 for commit 955b479 by the Vitest Coverage Report Action

@github-actions
Copy link
Contributor

github-actions bot commented Feb 5, 2026

CLI Version Mean Time ± Std Dev (s) Relative Performance (Lower is Faster)
cli-latest 3.548s ± 0.040s ▓ 1.00x
cli-next 3.542s ± 0.019s ▓ 1.00x (Fastest)

@tatomyr tatomyr marked this pull request as ready for review February 5, 2026 15:03
@tatomyr tatomyr requested review from a team as code owners February 5, 2026 15:03
@tatomyr tatomyr merged commit 781f5ba into main Feb 5, 2026
46 checks passed
@tatomyr tatomyr deleted the fix/examples-validation branch February 5, 2026 15:54
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.

3 participants