Skip to content

Commit c632184

Browse files
committed
Updated examples with improved discriminator support
1 parent 40efe3d commit c632184

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -9565,10 +9565,10 @@ export interface components {
95659565
/** @description Specifies the action that will be taken on the Droplet. */
95669566
droplet_action: {
95679567
/**
9568-
* @description discriminator enum property added by openapi-typescript
9568+
* @description The type of action to initiate for the Droplet. (enum property replaced by openapi-typescript)
95699569
* @enum {string}
95709570
*/
9571-
type: "enable_ipv6";
9571+
type: "enable_backups" | "disable_backups" | "power_cycle" | "shutdown" | "power_off" | "power_on" | "enable_ipv6";
95729572
};
95739573
droplet_action_restore: components["schemas"]["droplet_action"] & {
95749574
/**

0 commit comments

Comments
 (0)