Repository navigation
fix: x-microcks-refs not resolved when response is a $ref to a component - #2342
Merged
Merged
Conversation
vleon1a
requested review from
SebastienDegodez,
lbroudoux and
yada
as code owners
September 28, 2026 12:22
Signed-off-by: Vincent Leon <[email protected]>
vleon1a
force-pushed
the
fix/x-microcks-refs
branch
from
September 28, 2026 12:22
f94e4dc to
0a3f81b
Compare
lbroudoux
approved these changes
Sep 28, 2026
lbroudoux
left a comment
Member
There was a problem hiding this comment.
This looks great! Thank you!
Member
Unfortunately no, |
Contributor
Author
Alright, good to know! Thanks a lot @lbroudoux ! |
Member
|
And in the meantime you can also used the nightly tag of the image. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
When an OpenAPI operation's response uses a

$refto a component (e.g.$ref: '#/components/responses/MyResponse') andx-microcks-refsis defined on that component, Microcks fails to discover the operation's samples. The operation appears with zero samples:Looking at the code, it seems most of the methods rely on
followRefIfAny, but it was not the case here.Fix done applying TDD approach, and also validated by building the Uber Docker locally and running it on the project where I discovered the issue,
After the fix the samples are found:

Related issue(s)
Resolves #2336
Can this be backported to the
release-1.15branch?