Skip to content

De-duplicate unions. #1069

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions examples/digital-ocean-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5293,15 +5293,20 @@ export interface external {
name: string;
/**
* @description A slug representing the database engine used for the cluster. The possible values are: "pg" for PostgreSQL, "mysql" for MySQL, "redis" for Redis, and "mongodb" for MongoDB.
* @example pg
* @example mysql
* @enum {string}
*/
engine: "pg" | "mysql" | "redis" | "mongodb";
/**
* @description A string representing the version of the database engine in use for the cluster.
* @example 10
* @example 8
*/
version?: string;
/**
* @description A string representing the semantic version of the database engine in use for the cluster.
* @example 8.0.28
*/
semantic_version?: string;
/**
* @description The number of nodes in the database cluster.
* @example 2
Expand Down Expand Up @@ -8062,7 +8067,7 @@ export interface external {
* ]
* }
*/
"application/json": external["resources/firewalls/models/firewall_rule.yml"]["firewall_rules"] & (unknown | unknown);
"application/json": external["resources/firewalls/models/firewall_rule.yml"]["firewall_rules"];
};
};
responses: {
Expand Down Expand Up @@ -8212,7 +8217,7 @@ export interface external {
* ]
* }
*/
"application/json": external["resources/firewalls/models/firewall.yml"] & (unknown | unknown);
"application/json": external["resources/firewalls/models/firewall.yml"];
};
};
responses: {
Expand Down Expand Up @@ -8315,7 +8320,7 @@ export interface external {
* ]
* }
*/
"application/json": external["resources/firewalls/models/firewall_rule.yml"]["firewall_rules"] & (unknown | unknown);
"application/json": external["resources/firewalls/models/firewall_rule.yml"]["firewall_rules"];
};
};
responses: {
Expand Down Expand Up @@ -8490,7 +8495,7 @@ export interface external {
* ]
* }
*/
"application/json": WithRequired<external["resources/firewalls/models/firewall.yml"] & (unknown | unknown), "name">;
"application/json": WithRequired<external["resources/firewalls/models/firewall.yml"], "name">;
};
};
responses: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ properties:
description: A unique, human-readable name referring to a database cluster.
engine:
type: string
example: pg
example: mysql
enum:
- pg
- mysql
Expand All @@ -24,8 +24,13 @@ properties:
are: "pg" for PostgreSQL, "mysql" for MySQL, "redis" for Redis, and "mongodb" for MongoDB.
version:
type: string
example: '10'
example: '8'
description: A string representing the version of the database engine in use for the cluster.
semantic_version:
type: string
example: '8.0.28'
description: A string representing the semantic version of the database engine in use for the cluster.
readOnly: true
num_nodes:
type: integer
example: 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ content:
name: backend
engine: pg
version: '14'
semantic_version: '14.5'
connection:
uri: postgres://doadmin:wv78n3zpz42xezdk@backend-do-user-19081923-0.db.ondigitalocean.com:25060/defaultdb?sslmode=require
database: ''
Expand Down
794 changes: 744 additions & 50 deletions examples/github-api-next.ts

Large diffs are not rendered by default.

Loading