Skip to content

Loss of opaque names for simple types #1590

@MF1-MS

Description

@MF1-MS
Description

I am trying to wrap a primitive type such as a string with an opaqueWrapper. This is correctly rendered using swagger, but OpenAPI 'sees through' the wrapper and the underlying primitive type appears in the method signatures of the resulting generated code.

openapi-generator version

current master

OpenAPI declaration file content or url
definitions:
  request:
    type: object
    required:
      - opaque
    properties:
      opaque:
        $ref: '#/definitions/opaqueWrapper'

opaqueWrapper:
  type : string
  description: A string in an opaque format.
Command line used for generation
Steps to reproduce
Related issues/PRs
Suggest a fix/enhancement

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions