Skip to content

Commit b786954

Browse files
committed
Update examples with new discriminator output
1 parent d417d8b commit b786954

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

packages/openapi-typescript/examples/digital-ocean-api.ts

+8-3
Original file line numberDiff line numberDiff line change
@@ -9565,11 +9565,10 @@ export interface components {
95659565
/** @description Specifies the action that will be taken on the Droplet. */
95669566
droplet_action: {
95679567
/**
9568-
* @description The type of action to initiate for the Droplet.
9569-
* @example reboot
9568+
* @description discriminator enum property added by openapi-typescript
95709569
* @enum {string}
95719570
*/
9572-
type: "enable_backups" | "disable_backups" | "reboot" | "power_cycle" | "shutdown" | "power_off" | "power_on" | "restore" | "password_reset" | "resize" | "rebuild" | "rename" | "change_kernel" | "enable_ipv6" | "snapshot";
9571+
type: "enable_ipv6";
95739572
};
95749573
droplet_action_restore: components["schemas"]["droplet_action"] & {
95759574
/**
@@ -9617,6 +9616,12 @@ export interface components {
96179616
* @example Nifty New Snapshot
96189617
*/
96199618
name?: string;
9619+
} & {
9620+
/**
9621+
* @description discriminator enum property added by openapi-typescript
9622+
* @enum {string}
9623+
*/
9624+
type: "snapshot";
96209625
};
96219626
firewall_rule_base: {
96229627
/**

0 commit comments

Comments
 (0)