You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Parameters components shouldn't be inlined with resolve option set to true #2216
Following the doc, the resolve option should resolve refs (for parameters usage) from other external/relative sources/files and not replace ref usage by the inline version of the parameter. However, currently, the parameter ref is replaced by an inline version, while the component is still populated to POJO components.
Affected Version
e.g. 2.1.31
Earliest version the bug appears in (if known):
Seems to never have worked as expected.
Steps to Reproduce
Create the following yml files: 1. test.yml
openapi: 3.0.3info:
title: Testdescription: Testversion: 0.0.1paths:
/test:
parameters:
- $ref: './test-components.yml#/components/parameters/TestIdQueryParameter'get:
summary: Get all testsdescription: List testsresponses:
'200':
description: OK
2. test-components.yml
openapi: 3.0.3info:
title: Portfolio Management APIdescription: API to manage games portfolioversion: 0.0.1components:
schemas:
TestId:
description: Test idtype: stringexample: 1234parameters:
TestIdQueryParameter:
name: testIdin: querydescription: Test idrequired: falseschema:
$ref: './test-components.yml#/components/schemas/TestId'
Hi @Curs3W4ll
Thank you for reporting this issue. I have analyzed it and indeed it seems that the currant behavior is not correct for the parameters with external refs. Usage-site becomes fully inlined — which matches what resolveFully is supposed to do, not resolve. This is as well not aligned with the behavior for other types such (eg. responses).
I have crated an issue in our internal system and we will try to fix it as soon as possible. If you have any further information that could help us fix the issue that will be a great help for us!
Activity
Curs3W4ll commentedon Aug 5, 2025
Probably related to #2211
marcelstoer commentedon Aug 12, 2025
@Curs3W4ll I agree that this is related to what @daniel-kmiecik closed. However, to me both issues show faulty generator behavior.
ewaostrowska commentedon Aug 12, 2025
Hi @Curs3W4ll
Thank you for reporting this issue. I have analyzed it and indeed it seems that the currant behavior is not correct for the parameters with external refs. Usage-site becomes fully inlined — which matches what resolveFully is supposed to do, not resolve. This is as well not aligned with the behavior for other types such (eg. responses).
I have crated an issue in our internal system and we will try to fix it as soon as possible. If you have any further information that could help us fix the issue that will be a great help for us!
CHervaudBetclic commentedon Sep 10, 2025
Hello, any news about this @ewaostrowska ?
marcelstoer commentedon Jan 6, 2026
@CHervaudBetclic there's PR #2254 that would resolve this.
nicolaideffremo commentedon Jan 13, 2026
@ewaostrowska I have updated the pull request to resolve merge conflicts. Would be great to get a review and have this merged.