-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error with external $ref pointers in open api 3 #95
Comments
Hi @Fillosof, Thanks for reporting the problem. Can you please provide the stack of the error and also if possible definition files for reproducing the problem. |
Thank you @kobik for the quick answer.
and swagger files: link |
Thanks @Fillosof, the error is coming from I'll investigate this further. |
@Fillosof are you sure it's working with OIA2? From what I see the problem is even bigger as |
Thank you @kobik |
@superliuwr Thanks man, you save my day)))) |
@Fillosof, until my fix gets merged, you can achieve nullable like behavior by adding null to the supported types of the property. timezone:
type:
- 'string'
- 'null' |
Quick update, |
@kobik Thank You, now I had a hope to clear a mess, that I created to make it work |
If you'd like a better json ref resolver, we've got a fantastic one over at stoplightio/json-ref-resolver. It's powering everything throughout Studio, Prism, Spectral, etc., and is as performant as it is powerful. |
Fixed #103 |
Hi guys.
Recently update from 'swagger 2.0' to 'open api 3'
I used external $ref pointers in my swagger file like this:
For 'swagger 2.0' it's working perfectly fine but for 'open api 3' it throws an error
It began working if we change $ref to this style:
But this is nonconventional use of the $ref that doesn't support by the other libraries.
Is there any solutions for this Issue?
The text was updated successfully, but these errors were encountered: