This repository was archived by the owner on Dec 25, 2024. It is now read-only.
This repository was archived by the owner on Dec 25, 2024. It is now read-only.
[BUG][PYTHON] $ref to remote url is failing with v2.0.0 and higher #341
Closed as not planned
Description
Bug Report Checklist
- 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.
openapi-json-schema-generator version
3.3.1
OpenAPI declaration file content or url
$ref: https://XXX.yaml`
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/out
Steps to reproduce
Generate the client with a ref to an http yaml
Suggest a fix
The getSimpleRef
seems to return null for any http $ref
And I haven't found any place where the referenced file would be downloaded.
Metadata
Metadata
Assignees
Labels
No labels