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

Add accountID into endpoint2.0 param binding #496

Merged
merged 2 commits into from
Feb 12, 2024

Conversation

wty-Bryant
Copy link
Contributor

During the ep2.0 resolution, the accountID param is retrieved from ctx's credentials, thus in this PR, the ctx is added as a new param into endpoint binding func codegen.

@wty-Bryant wty-Bryant requested review from a team as code owners February 2, 2024 20:05
@@ -42,7 +43,7 @@ public GoWriter.Writable generate() {
loadResolvers();

return goTemplate("""
func $name:L(operation string, input interface{}, options Options) $params:P {
func $name:L(operation string, input interface{}, options Options, ctx $context:T) $params:P {
Copy link
Contributor

Choose a reason for hiding this comment

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

Context, as a rule, goes first in an API's argument list.

@wty-Bryant wty-Bryant merged commit 9653bca into feat-aid-endpoints Feb 12, 2024
1 check passed
@wty-Bryant wty-Bryant deleted the feat-endpoint-builtin branch February 12, 2024 19:28
wty-Bryant added a commit that referenced this pull request Jun 14, 2024
* Add accountID endpoint builtin and aid mode config

* Modify endpoint builtin codegen

---------

Co-authored-by: Tianyi Wang <wty@amazon.com>
wty-Bryant added a commit that referenced this pull request Jun 17, 2024
* Add accountID into endpoint2.0 param binding (#496)

* Add accountID endpoint builtin and aid mode config

* Modify endpoint builtin codegen

---------

Co-authored-by: Tianyi Wang <wty@amazon.com>

* add changelog

* fix changelog

---------

Co-authored-by: Tianyi Wang <wty@amazon.com>
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