preserveMiro
option not working properly with de-duplicated references
#152
Labels
preserveMiro
option not working properly with de-duplicated references
#152
Checklist
Detailed Description
I arrived here because of wework/speccy#268.
In my case, this happens only with internal references setup by the resolver to avoid duplicating the resolved content of other references.
I assumed that speccy was doing something wrong while setting up the library, but it doesn't seem so, in fact it just plainly doesn't pass any value to oas-resolver, so the default must apply (
false
). Sadly, I still end up withx-miro
values in the final resolved output of our multi-file OpenAPI 3 spec.To double check, I forced the value in my local checkout of speccy and did some manual logs in the imported node_modules, and made sure that the
options.preserveMiro
option was being set asfalse
in oas-resolver.A sample that shows this behaviour:
openapi.yaml:
responses.yaml:
schemas.yaml:
Resolved output (notice the resolved content of the
/bar
path):The text was updated successfully, but these errors were encountered: