Skip to content

When requestBody.content is an empty object, generated code is invalid #428

@serbanghita

Description

@serbanghita

from a random openapi.yaml file (generated with Stoplight)

      requestBody:
        content: {}
        description: ''

result from types.generated.ts

export type RequestBody$Cars$Get = () | void;

Metadata

Metadata

Assignees

No one assigned

    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