dherault / serverless-offline

Emulate AWS λ and API Gateway locally when developing your Serverless project
MIT License
5.19k stars 795 forks source link

Search for a configuration registered in responses #1705

Closed Denis-String closed 5 months ago

Denis-String commented 1 year ago

Feature Request

We are receiving an error when calling an endpoint where it does not have a "response" registered as "default" key. image

Sample Code

Searches for the first configuration registered within the response configurations.

let responseName = Object.keys(endpoint.responses)[0];

Expected behavior/code When calling the endpoint is returned successfully. even with the absence of a setting called "default"

Additional context/Screenshots

Motivation and Context Fixes: 1680

Faires12 commented 1 year ago

Up

matricali commented 11 months ago

Up

JoshuaCEnrico commented 7 months ago

up

DorianMazur commented 5 months ago

@Denis-String Fixed in v13.3.4