$ref within path is not resolved properly. Im getting error no operations were selected. fmt.Println shows that Spec.operations is empty.
paths:
"/":
"$ref": './paths/options.yaml'
Create any spec with referenced path item.
swagger version: 0.10.0
go version: go version go1.8.1 darwin/amd64
OS: osx
can you try to flatten your spec first to see if that fixes it?
swagger flatten -o swagger.flat.json swagger.json
Yes flattened spec has all operations included. Is such intermediate file recommended way of generation?
I'll make it the default in in the next version. It solves quite a lot of problems
Currently it's a separate operation because it was experimental
Thanks for posting that solution @casualjim - that will work for me in the interim as well
Most helpful comment
I'll make it the default in in the next version. It solves quite a lot of problems
Currently it's a separate operation because it was experimental