serverless-offline
serverless-offline copied to clipboard
Search for a configuration registered in responses
Feature Request
We are receiving an error when calling an endpoint where it does not have a "response" registered as "default" key.
Sample Code
Searches for the first configuration registered within the response configurations.
- file: dist\events\http\HttpServer.js
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
Up
Up
up
@Denis-String Fixed in v13.3.4