Skip to content

Commit

Permalink
Use safe name to generate discriminator wrapper class (#2961)
Browse files Browse the repository at this point in the history
  • Loading branch information
kikones34 authored Feb 23, 2024
1 parent d98f9ed commit d22f7e1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public ClassName getUnionSubTypeWrapperClass() {
.getDiscriminantValue()
.getName()
.getPascalCase()
.getUnsafeName() + "Value");
.getSafeName() + "Value");
}

@Override
Expand Down
8 changes: 6 additions & 2 deletions generators/java/sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
`# Changelog
# Changelog

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.8.3] - 2024-02-23
- Fix: The SDK generator now always creates a valid name for union discriminator wrapper classes.

## [0.8.2] - 2024-02-21
- Fix: File upload endpoints no longer fail to compile because the reference to
the mime type variable is present.
Expand Down Expand Up @@ -71,4 +75,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [0.6.1] - 2024-02-03

- Chore: Intialize this changelog
- Chore: Intialize this changelog
2 changes: 1 addition & 1 deletion generators/java/sdk/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.8.2
0.8.3

0 comments on commit d22f7e1

Please sign in to comment.