365bf27Drop node 12 and 14, support node 18 and 207154bebUse husky and lint-staged9796ba6Use prettierf181da6npm audit4254f0aUpdate minimist3fbdcedUpdate Studio Fail4cc686fUpgrade Studio ESLint Config and update eslint0a4bad2Upgrade Studio Changes3a10115Upgrade referee-sinona61a5dfRename master to main9d48128State MIT license in package.jsone976dbaAdd LICENSE
Released by Maximilian Antoni on 2024-01-17.
363bcc2Response with 403 if custom authorizer responds with deny
Released by Maximilian Antoni on 2024-01-09.
- 🐛
e763f3eHandle deny policy response from authorizer
Released by Maximilian Antoni on 2024-01-09.
- 🐛
e13d313Fix mock response templates
Released by Maximilian Antoni on 2023-11-29.
- 🐛
49d7dcaPopulate resource in proxy integration events
Released by Maximilian Antoni on 2023-11-29.
Released by Maximilian Antoni on 2023-01-20.
- 🐛
2e39414Fix default AWS account ID
Released by Maximilian Antoni on 2021-06-23.
- 🐛
f319b9cSetpathParametersandqueryStringParametersto null if empty
Released by Maximilian Antoni on 2021-06-14.
Released by Maximilian Antoni on 2021-05-25.
- 🐛
fd55e13Adjust logging received requests
Released by Maximilian Antoni on 2021-05-21.
- 🐛
26390cfAdjust logging received requests
Released by Maximilian Antoni on 2021-05-21.
- 🐛
b90a33dFail if Lambda integration httpMethod is not POST (#9)
Released by Maximilian Antoni on 2021-05-05.
- 🐛
8e5bcbcDo not require token validation
Released by Maximilian Antoni on 2021-04-12.
- 🍏
2b001c7Implement greedy path parameters - 🍏
b56fc27Implement any method - 🍏
1b181e6Implement proxy integration - 🐛
82433d8Check for empty security config - ✨
a6d28d6Configure npm token for CI build - ✨
a2fdd12Pass parsed URL to integration - ✨
18f8a3fMoveparseLamdaNameinto own file - ✨
3ab3cd2Move template parsing into integration-aws - ✨
5cf34efMove response handling into integration-aws - ✨
af950fcRename request to integration-aws - ✨
b8c3c03Configure GitHub actions - ✨
6eb66baUpgrade mocha and referee-sinon - ✨
293e9cdUpgrade eslint and eslint config - ✨
0902da9Update dependencies - ✨
899987dUse npm 7 - ✨
469f15dAdd .gitignore
Released by Maximilian Antoni on 2021-04-11.
- 🐛
f16523fFix message property when unauthorized
Released by Maximilian Antoni on 2020-07-29.
- 🐛
6c5cf73Fix status code when unauthorized
Released by Maximilian Antoni on 2020-07-29.
- 🐛
5e88eb1Log 404 failures - ✨
ebc0deaAdd "files" section topackage.json - ✨
bbd95a7Upgrade referee-sinon to v7 - ✨
2d891daUpdate Mocha - ✨
5b0586aRename function variables to match naming convention - ✨
945a249npm audit - ✨
daad371Upgrade eslint to latest - ✨
5ca938dUpgrade Mocha to latest - ✨
5635652Upgrade @sinonjs/referee-sinon to latest - ✨
c4c7978Update Studio Changes to v2 - 📚
f64e232Add copyright statement
Released by Maximilian Antoni on 2020-02-28.
Released by Maximilian Antoni on 2018-12-05.
- 🍏
a45e9e9Add support for security policy context properties - 📚
758619cUpdate Studio Changes for--footersupport
Released by Maximilian Antoni on 2018-09-10.
- 🐛
887c0e6Fix required fields check in body schema
- 🍏
45bf0d9Add support forstageandstageVariablesoptions
- 🐛
e412fbeFix stage variable check
- 🍏
3384515Support stage variables
- 💥
6100329BREAKING: Upgrade Studio Log to v2 - 🐛
cf5596eUseBuffer.frominstead of deprecatednew Buffer - ✨
b22cbd8Use Sinon default sandbox - ✨
fb779b4Use Sinon + Referee - 📚
d330f37Add commit links with--commits
- 🍏 Cache authorization tokens according to configured ttl
- ✨ Update dependencies
- 🐛 Add
--exitoption to mocha
- 🐛 Use json-parse-better-errors
- 🐛 Use
sinon.createSandboxinstead ofsinon.sandbox.create
- 🍏 Support array parameters
- 📚 Shorten API documentation
- ✨ Change internal function naming convention
- Reduce duplication in log message
- Use
@studio/log
- Support boolean parameters
- Look for
content-typeheader instead ofaccept - Handle invalid request exceptions
- Fix
$input.pathfunction to return first array element
- Swagger models now allow nested objects. However, they're not recursively validated yet.
- Fix swagger
$refwithin arrays and within$refed files.
This fix makes error returned by Lambda functions behave more like the AWS API Gateway implementation.
- Support custom security Lambda functions
- Fix template
$contextaccess
- Handle
JSON.parseexception for request templates
Any ${variables} in the swagger.json is now replaced with the corresponding
environment variable. If a variable is not defined, an exception is thrown. The
new swagger_env option allows to define a dotenv file to be loaded.
A swagger command was introduced to compile swagger.json into single file.
These flags are available for the new swagger command:
--envloads the given dotenv config file--fileallows to override the default swagger.json file--outfilewrite to the given file instead of standard out
Features:
- The Gateway now supports Velocity templates and JSON Path queries for the AWS
integration. This means the
requestTemplatesand theresponseTemplatesare parsed and invoked with full$inputand$utilsupport. - The request parameters now support "path" and URLs may contain placeholders,
e.g.
/users/:user. The corresponding value can then be used in the request template with$input.params('user').
Bugfixes:
- Lambda error handling now works more like what AWS does, thanks to the request templates support the new behavior is closer to reality.
- Inception