Skip to content

Conversation

@makeev-pavel
Copy link
Collaborator

No description provided.

@github-actions
Copy link

github-actions bot commented Aug 25, 2025

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@github-actions github-actions bot added the enhancement New feature or request label Aug 25, 2025
@makeev-pavel
Copy link
Collaborator Author

I have read the CLA Document and I hereby sign the CLA

@makeev-pavel makeev-pavel changed the title feat: Feature/path items feat: Added ref pathItems support Aug 26, 2025
@makeev-pavel makeev-pavel requested review from CountRedClaw, JayLim2 and b41ex and removed request for CountRedClaw August 26, 2025 09:40
Copy link
Collaborator

@CountRedClaw CountRedClaw left a comment

Choose a reason for hiding this comment

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

Please add a test in 'Document Group test' that makes sure that we are properly getting rid of operations that are not included in the group. Also it would be nice to check that we can handle mixed use of the regular pathItems and the referenced ones in one document.

@makeev-pavel
Copy link
Collaborator Author

Please add a test in 'Document Group test' that makes sure that we are properly getting rid of operations that are not included in the group. Also it would be nice to check that we can handle mixed use of the regular pathItems and the referenced ones in one document.

added 2 tests

return typeof value === 'object' && value !== null
}

export const getSymbolValueIfDefined = <T extends object>(
Copy link
Collaborator

Choose a reason for hiding this comment

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

I do not get, what is the benefit to have this method compared to just using obj[symbol]?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The logic is simple - type conversion and validation in a separate place.

Copy link
Collaborator

@b41ex b41ex left a comment

Choose a reason for hiding this comment

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

We have a logic that reduces path items to particular operation in a single-operation specification during build build type, but there's no corresponding test.
I believe we should add one.
There's a similar test for reducedSourceSpecifications build type ('should have documents stripped of operations other than from provided group'), but not build build type.

@b41ex b41ex changed the title feat: Added ref pathItems support feat: support for reusable pathItems definitions in components for OAS 3.1 Sep 19, 2025
@b41ex b41ex merged commit e26c4ba into develop Sep 19, 2025
15 checks passed
@b41ex b41ex deleted the feature/pathItems branch September 19, 2025 10:59
@github-actions github-actions bot locked and limited conversation to collaborators Sep 19, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ASV] Support for reusable pathItems definitions in components

4 participants