Skip to content

requestBody parameters are missing #338

@gr2m

Description

@gr2m

For example, GitHub's example schema (tests/v3/specs/github.yaml) has lots of requestBody parameters. But the generated TypeScript types (tests/v3/expected/github.ts) do not have any of it

As suggested in my comment here: #236 (comment), I'd transform something like this

      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                description:
                  type: string
                homepage:
                  type: string
                private:
                  type: boolean
                  default: false
              required:
                - name

into

      requestBody: {
        "application/json": {
          name: string;
          description?: string;
          homepage?: string;
          private?: boolean;
        };
      };

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