fix(openapi): flatten nullable unions to avoid nested anyOf/oneOf

This commit is contained in:
Hampus Kraft
2026-02-17 14:06:58 +00:00
parent 2db02ec255
commit b227bd0a85
8 changed files with 131 additions and 102 deletions

View File

@@ -68,7 +68,7 @@ Type: [ApplicationResponse](#applicationresponse)[]
|-------|------|-------------|
| bot | ?[ApplicationBotResponse](#applicationbotresponse) | The bot user associated with the application |
| bot_public | boolean | Whether the bot can be invited by anyone |
| description | null | The description of the application |
| description | ?string | The description of the application |
| icon | ?string | The icon hash of the application |
| id | [SnowflakeType](#snowflaketype) | The unique identifier of the application |
| name | string | The name of the application |
@@ -109,9 +109,9 @@ Type: [ApplicationResponse](#applicationresponse)[]
| bot? | [ApplicationBotResponse](#applicationbotresponse) | |
| bot_public | boolean | Whether the bot can be invited by anyone |
| bot_require_code_grant | boolean | Whether the bot requires OAuth2 code grant |
| description | null | The description of the application |
| description | ?string | The description of the application |
| flags | [ApplicationFlags](#applicationflags) | |
| icon | null | The icon hash of the application |
| icon | ?string | The icon hash of the application |
| id | [SnowflakeType](#snowflaketype) | The unique identifier of the application |
| name | string | The name of the application |
@@ -381,7 +381,7 @@ The application that was authorized
| Field | Type | Description |
|-------|------|-------------|
| bot_public | boolean | Whether the bot can be invited by anyone |
| description | null | The description of the application |
| description | ?string | The description of the application |
| icon | ?string | The icon hash of the application |
| id | [SnowflakeType](#snowflaketype) | The unique identifier of the application |
| name | string | The name of the application |
@@ -396,9 +396,9 @@ The application associated with the token
|-------|------|-------------|
| bot_public | boolean | Whether the bot can be invited by anyone |
| bot_require_code_grant | boolean | Whether the bot requires OAuth2 code grant |
| description | null | The description of the application |
| description | ?string | The description of the application |
| flags | [ApplicationFlags](#applicationflags) | |
| icon | null | The icon hash of the application |
| icon | ?string | The icon hash of the application |
| id | [SnowflakeType](#snowflaketype) | The unique identifier of the application |
| name | string | The name of the application |