You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
- openapi.yaml:104:13 -> $ref: resolve "./type.json": get "file:///home/user/project/type.json": external references are disabled
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 showing infer_types and depth_limit.
It would be nice if it was documented how to set the external resoler.
parser:
external: true
The text was updated successfully, but these errors were encountered:
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)
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: