Skip to content

Commit

Permalink
(chore): support undiscriminated union example generation
Browse files Browse the repository at this point in the history
  • Loading branch information
dsinghvi committed Feb 29, 2024
1 parent f35680c commit ef3b60f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ export class GeneratedUndiscriminatedUnionTypeImpl<Context extends ModelContext>
}

public buildExample(): ts.Expression {


throw new Error("Examples are not supported for undiscriminated unions");
}
}
6 changes: 6 additions & 0 deletions generators/typescript/sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.12.3-rc0] - 2024-02-27

- Fix: Previously SDK code snippets would not support generation with undiscriminated
unions. Now, it does.


## [0.12.2] - 2024-02-27

- Fix: Previously SDK code snippets would not take into account default parameter values
Expand Down
2 changes: 1 addition & 1 deletion generators/typescript/sdk/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.12.2
0.12.3-rc0

0 comments on commit ef3b60f

Please sign in to comment.