Skip to content

[BUG] composed schemas with type described do not set the correct isArray isMap etc booleans #10330

@spacether

Description

@spacether

Bug Report Checklist

  • Have you provided a full/minimal spec to reproduce the issue?
  • Have you validated the input using an OpenAPI validator (example)?
  • Have you tested with the latest master to confirm the issue still exists?
  • Have you searched for related issues/PRs?
  • What's the actual output vs expected output?
  • [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description

[BUG] composed schemas with type described do not set the correct isArray isObject etc booleans

openapi-generator version

5.2.1

OpenAPI declaration file content or url

Generate models for these components

    ComposedObject:
      type: object
      allOf:
        - {}
    ComposedNumber:
      type: number
      allOf:
        - {}
    ComposedString:
      type: string
      allOf:
        - {}
    ComposedBool:
      type: boolean
      allOf:
        - {}
    ComposedArray:
      type: array
      items: {}
      allOf:
        - {}
    ComposedNone:
      type: 'null'
      allOf:
        - {}
Generation Details

Generate models for those components in any generator

Steps to reproduce

Generate models for those components in any generator

Related issues/PRs
Suggest a fix

When those models are ingested, we should set the isArray etc booleans correctly on our codegenModel instance

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions