Skip to content

Commit

Permalink
fix: controller spec response building from metadata
Browse files Browse the repository at this point in the history
Signed-off-by: Rohit Vishwakarma <rohit.vishwakarma@sourcefuse.com>
Signed-off-by: Rifa Achrinza <25147899+achrinza@users.noreply.github.com>
  • Loading branch information
rohitvishwakarma-sf authored and achrinza committed Apr 7, 2022
1 parent a60ae8e commit e5c295c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/openapi-v3/src/controller-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,10 @@ function resolveControllerSpec(constructor: Function): ControllerSpec {
}
endpoint.spec = operationSpec;
} else if (decoratedResponses) {
operationSpec = buildResponsesFromMetadata(
operationSpec.responses = buildResponsesFromMetadata(
decoratedResponses,
operationSpec,
);
).responses;
}

if (classTags && !operationSpec.tags) {
Expand Down

0 comments on commit e5c295c

Please sign in to comment.