plaid / plaid-openapi

API version 2020-09-14
https://plaid.com/docs
91 stars 39 forks source link

Illegal schema found with non-object type combined with properties, no properties should be defined: #137

Closed akhileshagarwal85 closed 11 months ago

akhileshagarwal85 commented 1 year ago

Hello,

I am getting below output while generating the client using openapiGenerate gradle plugin. Though the client is generating but why this log and its repetitive like 50 times

Illegal schema found with non-object type combined with properties, no properties should be defined:
 class StringSchema {
    class Schema {
allOf schema `null` containing multiple types (not model) is not supported at the moment.
allOf schema `null` containing multiple types (not model) is not supported at the moment.
allOf schema `null` containing multiple types (not model) is not supported at the moment.
        type: string
        format: null
        $ref: null
        description: The point at which the user exited the Link flow. One of the following values.
        title: null
        multipleOf: null
        maximum: null
        exclusiveMaximum: null
        minimum: null
        exclusiveMinimum: null
        maxLength: null
        minLength: null
        pattern: null
        maxItems: null
        minItems: null
        uniqueItems: null
        maxProperties: null
        minProperties: null
        required: null
        not: null
        properties: {requires_questions=class Schema {
            type: null
            format: null
            $ref: null
            description: User prompted to answer security questions
            required: null
            not: null
            properties: null
            additionalProperties: null
            nullable: null
            readOnly: null
            writeOnly: null
            example: null
            externalDocs: null
            deprecated: null
            discriminator: null
            xml: null
        }, institution_not_found=class Schema {
            type: null
            format: null
            $ref: null
            description: User exited the Link flow after unsuccessfully (no results returned) searching for a financial institution
            title: null
            multipleOf: null
            maximum: null
            exclusiveMaximum: null
            minimum: null
            exclusiveMinimum: null
            maxLength: null
            minLength: null
            pattern: null
            maxItems: null
            minItems: null
            uniqueItems: null
            maxProperties: null
            minProperties: null
            required: null
            not: null
            properties: null
            additionalProperties: null
            nullable: null
            readOnly: null
            writeOnly: null
            example: null
            externalDocs: null
            deprecated: null
            discriminator: null
            xml: null
        }}
        additionalProperties: null
        nullable: null
        readOnly: null
        writeOnly: null
        example: null
        externalDocs: null
        deprecated: null
        discriminator: null
        xml: null
    }
}

Below is the command I am using to generate the client

openapi-generator generate -g kotlin \                                                                                                                
-i 2020-09-14.yml \
-o build/generated-kotlin \
--library=jvm-okhttp3 \
--global-property apiDocs=false,modelDocs=false,apiTests=false,modelTests=false \
-p artifactId=plaid,apiPackage=com.plaid.client.request,modelPackage=com.plaid.client.model,dateLibrary=java8 \
-t teamplates/java \
--type-mappings=BigDecimal=Double
phoenixy1 commented 1 year ago

I think you should probably be able to ignore that. It looks like we have some undocumented endpoints that may be incorrectly defined and are triggering it, but those endpoints aren't used publicly.