swagger-api / swagger-core

Examples and server integrations for generating the Swagger API Specification, which enables easy access to your REST API

Home Page:http://swagger.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OpenAPI spec generated via latest version of ‘Swagger Gradle Plugin’ is not compatible with latest OpenAPI Generator CLI

ideas-into-software opened this issue · comments

OpenAPI spec generated via latest version of ‘Swagger Gradle Plugin’ (io.swagger.core.v3.swagger-gradle-plugin, version 2.2.20) is not compatible with latest OpenAPI Generator CLI (openapitools/openapi-generator-cli:latest).

Specifically, tenths of errors / warnings appear during code generation based on such OpenAPI spec, e.g. over 130 occurrences of "Illegal schema found with non-object type..." error:

ERROR o.o.codegen.InlineModelResolver - Illegal schema found with non-object type combined with properties, no properties should be defined:
 class ArraySchema {
    class Schema {

Thankfully, this does not prevent code being generated off such OpenAPI spec, which BTW implies such should perhaps be classified as “Warning” instead of “Error” ?