Skip to content

Instantly share code, notes, and snippets.

@effervescentia
Created April 4, 2023 18:53
Show Gist options
  • Save effervescentia/259bf7dd49c7bccf1450e58efb571e44 to your computer and use it in GitHub Desktop.
Save effervescentia/259bf7dd49c7bccf1450e58efb571e44 to your computer and use it in GitHub Desktop.
single enum union entry in failed SDK codegen
export const TestControllerBadUnion200ResponseValueOneOf = {
FOO: 'foo'
} as const;
export type TestControllerBadUnion200ResponseValueOneOf = typeof TestControllerBadUnion200ResponseValueOneOf[keyof typeof TestControllerBadUnion200ResponseValueOneOf];
export function TestControllerBadUnion200ResponseValueOneOfFromJSON(json: any): TestControllerBadUnion200ResponseValueOneOf {
return TestControllerBadUnion200ResponseValueOneOfFromJSONTyped(json, false);
}
export function TestControllerBadUnion200ResponseValueOneOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): TestControllerBadUnion200ResponseValueOneOf {
return json as TestControllerBadUnion200ResponseValueOneOf;
}
export function TestControllerBadUnion200ResponseValueOneOfToJSON(value?: TestControllerBadUnion200ResponseValueOneOf | null): any {
return value as any;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment