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 }}
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
Since Prop1 and Prop2 both live inside of #/...path_to_first_file_object/properties, this is causing a circular reference. I get the error: $refs must reference a valid location in the document when I try to view the output on https://editor.swagger.io/
Expected behaviour:
I'd expect the circular reference to be avoided.
If this isn't enough info, I'd be happy to provide more :)
Workaround
Run with --dereference. I might also try changing the way I've structured this to move the first reference to the Base object somewhere else.
The text was updated successfully, but these errors were encountered:
Hello, thank you for this excellent tool! I hope this isn't a duplicate, I didn't see anything that jumped out at me.
Problem
I have a bit of openapi spec like this:
When I run
swagger-cli bundle
, without setting--dereference
, I end up with a$ref
that looks like this inside the definition forProp2
:Since
Prop1
andProp2
both live inside of#/...path_to_first_file_object/properties
, this is causing a circular reference. I get the error:$refs must reference a valid location in the document
when I try to view the output on https://editor.swagger.io/Expected behaviour:
I'd expect the circular reference to be avoided.
If this isn't enough info, I'd be happy to provide more :)
Workaround
Run with
--dereference
. I might also try changing the way I've structured this to move the first reference to theBase
object somewhere else.The text was updated successfully, but these errors were encountered: