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

fix(endpoint): fixes to endpoints codegen from user testing #592

Merged
merged 3 commits into from
Sep 21, 2022

Conversation

kuhe
Copy link
Contributor

@kuhe kuhe commented Sep 21, 2022

  • codegen fixes for endpoints 2.0

@kuhe kuhe requested a review from a team as a code owner September 21, 2022 15:12
@@ -201,13 +202,14 @@ private void generateEndpointParameterInstructionProvider() {
name, EndpointsParamNameMap.getLocalName(name)
);
});
parameterFinder.getStaticContextParamValues(operation).forEach((name, value) -> {
Shape operationInput = model.getShape(operation.getInputShape()).get();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix: the contextParams are traits on input structure members, not the operation itself

@kuhe kuhe merged commit 7badc6b into smithy-lang:main Sep 21, 2022
@kuhe kuhe deleted the endpoints-20 branch September 21, 2022 21:03
srchase pushed a commit to srchase/smithy-typescript that referenced this pull request Mar 17, 2023
…ang#592)

* fix(endpoint): fixes to endpoints codegen from user testing

* feat(endpoint): check clientContextParam required status from endpoint ruleset params

* feat(endpoint): exclude contextParams from operation uri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants