Skip to content

Commit

Permalink
chore(cofegen): rename generateParseErrorBody to generateJsonParseErr…
Browse files Browse the repository at this point in the history
…orBody
  • Loading branch information
trivikr committed Sep 29, 2022
1 parent 608faf8 commit 6c18cf9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Expand Up @@ -118,12 +118,12 @@ static void generateJsonParseBody(GenerationContext context) {
}

/**
* Writes a response body parser function for errors. This
* Writes a response body parser function for JSON errors. This
* will populate message field in parsed object, if it's not present.
*
* @param context The generation context.
*/
static void generateParseErrorBody(GenerationContext context) {
static void generateJsonParseErrorBody(GenerationContext context) {
TypeScriptWriter writer = context.getWriter();

// Include a JSON body parser used to deserialize documents from HTTP responses.
Expand Down
Expand Up @@ -80,7 +80,7 @@ protected void generateDocumentBodyShapeDeserializers(GenerationContext context,
public void generateSharedComponents(GenerationContext context) {
super.generateSharedComponents(context);
AwsProtocolUtils.generateJsonParseBody(context);
AwsProtocolUtils.generateParseErrorBody(context);
AwsProtocolUtils.generateJsonParseErrorBody(context);
AwsProtocolUtils.addItempotencyAutofillImport(context);

TypeScriptWriter writer = context.getWriter();
Expand Down
Expand Up @@ -79,7 +79,7 @@ protected void generateDocumentBodyShapeDeserializers(GenerationContext context,
public void generateSharedComponents(GenerationContext context) {
super.generateSharedComponents(context);
AwsProtocolUtils.generateJsonParseBody(context);
AwsProtocolUtils.generateParseErrorBody(context);
AwsProtocolUtils.generateJsonParseErrorBody(context);
AwsProtocolUtils.addItempotencyAutofillImport(context);

TypeScriptWriter writer = context.getWriter();
Expand Down

0 comments on commit 6c18cf9

Please sign in to comment.