Actions
Issue #5451
closedopenapi-generator: attribute info.logo is unexpected
Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
1. Low
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:
Description
When trying to generate an Pulp 3 API client with openapi-generator it claims that the attribute info.logo is unexpected.
openapi-generator was invoked like the following:
openapi-generator generate -i api.json -g php -o /tmp/pulp-api
Exception in thread "main" org.openapitools.codegen.SpecValidationException: There were issues with the specification. The option can be disabled via validateSpec (Maven/Gradle) or --skip-validate-spec (CLI).
| Error count: 1, Warning count: 0
Errors:
-attribute info.logo is unexpected
at org.openapitools.codegen.config.CodegenConfigurator.toContext(CodegenConfigurator.java:424)
at org.openapitools.codegen.config.CodegenConfigurator.toClientOptInput(CodegenConfigurator.java:453)
at org.openapitools.codegen.cmd.Generate.run(Generate.java:407)
at org.openapitools.codegen.OpenAPIGenerator.main(OpenAPIGenerator.java:60)
This can be circumvented by passing the --skip-validate-spec flag.
The same issue occurs if using the json file for the rpm plugin.
Updated by dkliban@redhat.com over 2 years ago
- Status changed from NEW to CLOSED - WONTFIX
We want to include the logo in the OpenAPI schema so it appears when we render the schema using ReDoc. We always pass in the --skip-validate-spec flag when running openapi-generator because of how we use pulp_href in operation paths.
Actions