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
{{ message }}
This repository was archived by the owner on Dec 25, 2024. It is now read-only.
Have you provided a full/minimal spec to reproduce the issue?
Have you validated the input using an OpenAPI validator (example)?
Have you tested with the latest master to confirm the issue still exists?
Have you searched for related issues/PRs?
What's the actual output vs expected output?
[Optional] Sponsorship to speed up the bug fix or feature request
Description
When using an http reference, the generator fails with error [main] WARN org.openapijsonschematools.codegen.common.ModelUtils - Failed to get the schema at $ref:
Is using an http $ref supported by the generator ?
Bonus point:
Some of our http ref have local reference ./XXX.yaml that also needs to be followed.
Bug Report Checklist
Description
When using an http reference, the generator fails with error
[main] WARN org.openapijsonschematools.codegen.common.ModelUtils - Failed to get the schema at $ref:Is using an http $ref supported by the generator ?
Bonus point:
Some of our http ref have local reference
./XXX.yamlthat also needs to be followed.openapi-json-schema-generator version
3.3.1
OpenAPI declaration file content or url
Generation Details
docker run --rm -v ./:/local openapijsonschematools/openapi-json-schema-generator-cli:3.3.1 generate -i /local/my-service.yml -g python -o /local/outSteps to reproduce
Generate the client with a ref to an http yaml
Suggest a fix
The
getSimpleRefseems to return null for any http $refopenapi-json-schema-generator/src/main/java/org/openapijsonschematools/codegen/common/ModelUtils.java
Line 324 in d41a95e
And I haven't found any place where the referenced file would be downloaded.