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
I'm running into an issue where openapi-generator fails to generate files for any generation target when referencing an external schema, with a variant of the following error
I have no concerns that my external schemas are valid, swagger-editor is able to parse and generate documentation for them, they pass JSON schema validation tools, etc.
This schema is quite complex, and I wish I had a simpler example to give you, but I do not. However, I've linked the schemas and OpenAPI file to this issue.
Place addr.json/ NIST_VRI_voter_records_interchange.jsonaddr.json, NIST_VRI_voter_records_interchange.json up a level from vriApi.yaml and run the command above.
java version "10.0.1" 2018-04-17
Java(TM) SE Runtime Environment 18.3 (build 10.0.1+10)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.1+10, mixed mode)
Description
I'm running into an issue where
openapi-generator
fails to generate files for any generation target when referencing an external schema, with a variant of the following errorI have no concerns that my external schemas are valid,
swagger-editor
is able to parse and generate documentation for them, they pass JSON schema validation tools, etc.This schema is quite complex, and I wish I had a simpler example to give you, but I do not. However, I've linked the schemas and OpenAPI file to this issue.
openapi-generator version
3.1.0
OpenAPI declaration file content or url
gist
linked schema 1
linked schema 2
Command line used for generation
java -jar .\openapi-generator-cli-3.1.0.jar generate -i vriApi.yaml -g java -o ./
Steps to reproduce
Place
addr.json
/NIST_VRI_voter_records_interchange.jsonaddr.json
,NIST_VRI_voter_records_interchange.json
up a level fromvriApi.yaml
and run the command above.java version "10.0.1" 2018-04-17
Java(TM) SE Runtime Environment 18.3 (build 10.0.1+10)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.1+10, mixed mode)
Related issues/PRs
See swagger-api/swagger-codegen#8389
Suggest a fix/enhancement
The text was updated successfully, but these errors were encountered: