Skip to content

Commit

Permalink
(fix): snippet templates for discriminated unions specify `template_i…
Browse files Browse the repository at this point in the history
…nputs` (#3808)
  • Loading branch information
dsinghvi authored Jun 7, 2024
1 parent bd16b09 commit d01b72c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions generators/python/sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ 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).

## [2.9.3] - 2024-06-06

- Fix: Snippet templates for discrminated unions now specify the `template_input` property which is
required to actually see snippets of instantiating discrminated unions.

## [2.9.2] - 2024-06-06

- Fix: downgrades mypy so we can run it over all our files without concern for their pydantic bug
Expand Down
2 changes: 1 addition & 1 deletion generators/python/sdk/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.9.2
2.9.3
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,7 @@ def _get_discriminated_union_template(
discriminant_field=union_declaration.discriminant.wire_value,
template_string=f"{name}={self.TEMPLATE_SENTINEL}" if name is not None else f"{self.TEMPLATE_SENTINEL}",
members=member_templates,
template_input=PayloadInput(location="RELATIVE"),
)
)

Expand Down

0 comments on commit d01b72c

Please sign in to comment.