-
-
Notifications
You must be signed in to change notification settings - Fork 582
Closed
Description
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;
};
};
drwpow
Metadata
Metadata
Assignees
Labels
No labels