Skip to content

APIGateway Example Doesn't Build #473

Closed
@mikaelacaron

Description

@mikaelacaron

the example for the APIGateway doesn't build, because the initializer doesn't have encodableBody as one of the properties

In main.swift of APIGateway example, link

return try APIGatewayV2Response(statusCode: .ok, headers: header, encodableBody: event)

This is the error:

 error: extra argument 'encodableBody' in call
25 | 
26 |     // echo the request in the response
27 |     return try APIGatewayV2Response(statusCode: .ok, headers: header, encodableBody: event)
   |                                                                                      `- error: extra argument 'encodableBody' in call

Metadata

Metadata

Assignees

Labels

area/testingImprovements to tests.good first issueGood for newcomerskind/bugFeature doesn't work as expected.semver/noneNo version bump required.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions