Skip to content

Conversation

@tatomyr
Copy link
Collaborator

@tatomyr tatomyr commented Oct 14, 2025

What/Why/How?

Added a new rule for validating tags parents in OpenAPI 3.2 specification.

rule recommended minimal spec
spec-no-invalid-tag-parents error warn error

Reference

Resolves #2342

Related: #2316

Related changes: #2367

Testing

Screenshots (optional)

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 Oct 14, 2025

🦋 Changeset detected

Latest commit: 0fec0c6

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 Minor
@redocly/cli Minor
@redocly/respect-core Minor

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 Oct 14, 2025

Command Mean [s] Min [s] Max [s] Relative
redocly lint packages/core/src/benchmark/benches/rebilly.yaml 1.423 ± 0.032 1.377 1.488 1.00
redocly-next lint packages/core/src/benchmark/benches/rebilly.yaml 1.442 ± 0.029 1.383 1.478 1.01 ± 0.03

Comment on lines +7 to +8
describe('Oas3 no-server-variables-empty-enum', () => {
it('should report on server object with empty enum and unknown enum value', async () => {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed the naming

@tatomyr tatomyr marked this pull request as ready for review October 14, 2025 09:26
@tatomyr tatomyr requested review from a team as code owners October 14, 2025 09:26
@tatomyr
Copy link
Collaborator Author

tatomyr commented Oct 14, 2025

@adamaltman need your input on rule name.

@tatomyr tatomyr requested a review from adamaltman October 14, 2025 09:30
@tatomyr tatomyr force-pushed the feat/oas32-tag-parents-rule branch from b4f28f0 to 1b18b92 Compare October 14, 2025 12:40
@tatomyr tatomyr mentioned this pull request Oct 15, 2025
6 tasks
@tatomyr tatomyr merged commit 2704d3e into main Oct 15, 2025
52 of 53 checks passed
@tatomyr tatomyr deleted the feat/oas32-tag-parents-rule branch October 15, 2025 18:43
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.

Configurable Rules: new rule for OAS3.2, Tags, no parent defined

4 participants