-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: allow non backward compatible required member #566
feat: allow non backward compatible required member #566
Conversation
d456dae
to
f3bb827
Compare
...ript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/StructureGenerator.java
Outdated
Show resolved
Hide resolved
...ript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/TypeScriptSettings.java
Outdated
Show resolved
Hide resolved
...ript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/TypeScriptSettings.java
Outdated
Show resolved
Hide resolved
...-codegen/src/test/java/software/amazon/smithy/typescript/codegen/StructureGeneratorTest.java
Outdated
Show resolved
Hide resolved
Can the overall PR description get updated with the enums and what impact each has on the generated code? |
Decided to look into an alternative option.
...ript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/TypeScriptSettings.java
Outdated
Show resolved
Hide resolved
...ript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/StructureGenerator.java
Outdated
Show resolved
Hide resolved
...ript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/TypeScriptSettings.java
Outdated
Show resolved
Hide resolved
...ript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/TypeScriptSettings.java
Outdated
Show resolved
Hide resolved
...ript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/TypeScriptSettings.java
Outdated
Show resolved
Hide resolved
...ript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/TypeScriptSettings.java
Outdated
Show resolved
Hide resolved
…/typescript/codegen/TypeScriptSettings.java Co-authored-by: Jaykumar Gosar <5666661+gosar@users.noreply.github.com>
…/typescript/codegen/TypeScriptSettings.java Co-authored-by: Jaykumar Gosar <5666661+gosar@users.noreply.github.com>
…/typescript/codegen/TypeScriptSettings.java Co-authored-by: Jaykumar Gosar <5666661+gosar@users.noreply.github.com>
…/typescript/codegen/TypeScriptSettings.java Co-authored-by: Jaykumar Gosar <5666661+gosar@users.noreply.github.com>
…/typescript/codegen/StructureGenerator.java Co-authored-by: Jaykumar Gosar <5666661+gosar@users.noreply.github.com>
* feat: allow non backward-compatible required member --------- Co-authored-by: Eduardo Rodrigues <eduardomourar@users.noreply.github.com> Co-authored-by: Jaykumar Gosar <5666661+gosar@users.noreply.github.com>
Issue #, if available: #503
Description of changes:
A continuation of PR #537, but we will allow to remove
| undefined
by setting an input configuration calledrequiredMemberMode
with the following possible values:@required
trait applied to beundefined
. By doing so it can still be considered a backwards compatible change for Smithy services even when the required constraint is dropped from a member .| undefined
from the generated code.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.