-
Notifications
You must be signed in to change notification settings - Fork 92
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 a name property to error structures #95
Conversation
@@ -158,6 +158,7 @@ private void renderErrorStructure() { | |||
|
|||
writer.openBlock("export interface $L extends $L {", symbol.getName(), extendsFrom); | |||
writer.write("__type: $S;", shape.getId().getName()); | |||
writer.write("name: $S;", shape.getId().getName()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought we were just special casing exceptions. Why is this needed on all structures? Why would we need this and __type?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is in the code for exception structures renderErrorStructure
, as to the why we have both I think that's #92.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok. This needs to be addressed in a followup PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issue created for removing __type #96
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: address the duplicative __type and name properties.
* Adds API Gateway Middleware. Adds method to define custom middleware. Adds support for MiddlewareDefinitions
* Adds API Gateway Middleware. Adds method to define custom middleware. Adds support for MiddlewareDefinitions
Fixes #94
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.