Skip to content
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

Remove ignoreUnsupportedConstraintTraits from integration test models #2516

Conversation

david-perez
Copy link
Contributor

Now that constraint traits are supported in server SDKs (with some
corner case caveats, see
#1401), we can remove
ignoreUnsupportedConstraintTraits from the codegen config of the
integration test models.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Now that constraint traits are supported in server SDKs (with some
corner case caveats, see
#1401), we can remove
`ignoreUnsupportedConstraintTraits` from the codegen config of the
integration test models.
@david-perez david-perez added the server Rust server SDK label Mar 30, 2023
@david-perez david-perez requested a review from a team as a code owner March 30, 2023 14:18
@david-perez
Copy link
Contributor Author

Worth implementing a check in ValidateUnsupportedConstraints that aborts codegen if the flag is enabled but all constraint traits in the model are supported. I'll do this in a separate PR, since it's a breaking change that will have to wait to be merged in until the next merge window.

@github-actions
Copy link

A new generated diff is ready to view.

  • No codegen difference in the AWS SDK
  • No codegen difference in the Client Test
  • No codegen difference in the Server Test
  • No codegen difference in the Server Test Python

A new doc preview is ready to view.

@github-actions
Copy link

github-actions bot commented Apr 3, 2023

A new generated diff is ready to view.

  • No codegen difference in the AWS SDK
  • No codegen difference in the Client Test
  • No codegen difference in the Server Test
  • No codegen difference in the Server Test Python

A new doc preview is ready to view.

@david-perez david-perez added this pull request to the merge queue Apr 3, 2023
Merged via the queue into main with commit 3feb4be Apr 3, 2023
37 of 38 checks passed
@david-perez david-perez deleted the davidpz/remove-ignore-unsupported-constraint-traits-from-integration-test-models branch April 3, 2023 11:54
david-perez added a commit that referenced this pull request Apr 4, 2023
Now that constraint traits are supported in server SDKs (with some
corner case caveats, see #1401), this flag will almost always be useless
for those early adopters of constraint traits. It is thus convenient to
inform the user that they should remove it.

See #2516 (comment).
unexge pushed a commit that referenced this pull request Apr 24, 2023
…ls (#2516)

* Remove `ignoreUnsupportedConstraintTraits` from integration test models

Now that constraint traits are supported in server SDKs (with some
corner case caveats, see
#1401), we can remove
`ignoreUnsupportedConstraintTraits` from the codegen config of the
integration test models.

* Bring back ignoreUnsupportedConstraintTraits in RestJsonValidation model
rcoh pushed a commit that referenced this pull request Apr 24, 2023
…ls (#2516)

* Remove `ignoreUnsupportedConstraintTraits` from integration test models

Now that constraint traits are supported in server SDKs (with some
corner case caveats, see
#1401), we can remove
`ignoreUnsupportedConstraintTraits` from the codegen config of the
integration test models.

* Bring back ignoreUnsupportedConstraintTraits in RestJsonValidation model
david-perez added a commit that referenced this pull request May 30, 2023
Now that constraint traits are supported in server SDKs (with some
corner case caveats, see #1401), this flag will almost always be useless
for those early adopters of constraint traits. It is thus convenient to
inform the user that they should remove it.

See
#2516 (comment).

## Checklist
<!--- If a checkbox below is not applicable, then please DELETE it
rather than leaving it unchecked -->
- [x] I have updated `CHANGELOG.next.toml` if I made changes to the
smithy-rs codegen or runtime crates

----

_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
server Rust server SDK
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants