Swagger annotations $ref as string #800
Replies: 2 comments
-
We do have a bit of a hacky workaround which is to convert our schema.json into a @Swagger annotation format programatically but not ideal that we are converting for it to be used |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @DanPottsHimself-Mkodo I will try to reproduce or make an example about this usage sometime this week. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
When trying to use $ref to point to an external schema json, the definition is only returned as just "string". It's not able to resolve the path to the json it seems. 'Could not resolve reference: Tried to resolve a relative URL, without having a basePath.'
External schema:
Any help appreciated
Reproduction
Complete
System Info
Used Package Manager
npm
Validations
Beta Was this translation helpful? Give feedback.
All reactions