swagger-typescript-api
swagger-typescript-api copied to clipboard
Unable to use $ref in "paths"
Hello. I'm getting errors while generating typescript definitions for my api. Some paths are defined in other files, so I pass a $ref to them. Feel free to check out the minimal bug repro repository I made https://github.com/bartekczyz/swagger-typescript-api-bug-repro
I'm getting
TypeError: Cannot create property 'consumes' on string './paths/repro.yaml#/hello'
Is there a workaround I could use? 🤔
Ok, for now I'm using speccy resolve to put all $refs into one big file
@bartekczyz will be fixed
Hello I met same problem. Could you let me know when the fix of this issue will be released???
Hello @js2me, any updates on this? :)
We're also running into this, we had to rename a large set of endpoints and have to support the old names as well as the new names for a time being and would like to be able to reference in paths to reduce duplication and avoid maintenance errors...
I don't want to pre-compile and dereference everything because then we lose model names which we use quite a bit.