Project

Profile

Help

Issue #5451

openapi-generator: attribute info.logo is unexpected

Added by lbausch about 1 month ago. Updated about 1 month ago.

Status:
NEW
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Severity:
1. Low
Version:
Platform Release:
Blocks Release:
OS:
Backwards Incompatible:
No
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:

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.

History

#1 Updated by fabricio.aguiar about 1 month ago

  • Triaged changed from No to Yes

Please register to edit this issue

Also available in: Atom PDF