Skip to content

Swagger schema does not validate with OpenAPI tools #602

@sschuberth

Description

@sschuberth

I'm new to Swagger / OpenAPI, so please bear with me if I'm doing something wrong, but for me using the OpenAPI Generator Gradle Plugin, the openApiGenerate task throws a bunch of validation errors like:

Execution failed for task ':clearly-defined:openApiGenerate'.
> There were issues with the specification. The option can be disabled via validateSpec (Maven/Gradle) or --skip-validate-spec (CLI).
   | Error count: 98, Warning count: 0
  Errors: 
        -attribute paths.'/notices'(post).requestBody is unexpected
        -attribute paths.'/harvest/{type}/{provider}/{namespace}/{name}/{revision}'. Declared path parameter namespace needs to be defined as a path parameter in path or operation level
        -attribute paths.'/definitions/{type}/{provider}/{namespace}/{name}/{revision}'. Declared path parameter provider needs to be defined as a path parameter in path or operation level
...

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions