-
Notifications
You must be signed in to change notification settings - Fork 68
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
External references don't work #1205
Labels
bug
Something isn't working
Comments
Here's full config example. ogen/examples/_config/example_all.yml Lines 1 to 8 in d44add5
|
ok... that would be a naming inconsistency... I saw allow_remote, but it didn't align to anything in settings.go... and the description (enables remote references) doesn't describe the error (external references are disabled) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What version of ogen are you using?
1.0.0
Can this issue be reproduced with the latest version?
Yes
What did you do?
I have an openapi.yaml with a reference to another file.
What did you expect to see?
I expected the
$ref
to resolve the reference to the external file.What did you see instead?
What I did after getting the error...
I grepped the ogen source, found the error being raised in
openapi/parser/settings.go
from the NoExternal ExternalResolver implementation.I can not figure out how to pass that in to
ogen
. I tried a config.yaml that looked like the below, based on the example configs and the exampes showinginfer_types
anddepth_limit
.It would be nice if it was documented how to set the external resoler.
The text was updated successfully, but these errors were encountered: