Closed boesing closed 2 years ago
@JamesMessinger Is anything missing to triage this issue? Is this a bug? Is this intentional?
If there is anything I can do, please let me know.
Same error ((( I have some objects in a separate YAML file and use it in the same schema 2 times as a result of error: Code:
properties1:
$ref: "./ExtraProperties.yaml"
properties2:
$ref: "./ExtraProperties.yaml"
Wrong generated file:
properties1:
type: object
.....
properties2:
$ref: '#/components/schemas/CreateObject/properties/properties1'
Closing here as it seems that this repository is unmaintained as of this writing.
Hey there,
I am experiencing a strange issue when using dereferencing.
Having two files:
foo.yaml
bar.yaml
When using
swagger-cli bundle bar.yaml --dereference
, I get the following error:The error is correct, the file
foo.yaml
does not have the parameterQueryParameterFoo
withincomponents/parameters
, but I've never referenced that 🤷♂️So what I assume is, that the dereferencing somehow thinks, that it has to look within
foo.yaml
when passing to the next$ref
.I am on v2.3.5 - gonna re-check on v4.
Update
When updating to v4.0.4, the error message is less verbose but ends up with the same problem:
Token "components" does not exist.
Am I using the
$ref
wrong or is this supposed to be a bug?