Skip to content

autodect Map<String, ComplexType> from additionalProperties #11

Open
@hauner

Description

@hauner

extracted from on openapi-processor/openapi-processor-spring/issues/150

if #10 works and produces maintainable code try to automatically detect a Map<String, ComplexType> from additionalProperties without an explicit mapping:

# ...
type: object
additionalProperties:
  type: array
  items:
    type: string

or even more complex:

additionalProperties may contain an object that should be generated:

# ...
type: object
additionalProperties:
  type: object
  properties:
    foo:
      type: string
    bar:
      type: array
      items:
        type: string

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions