365bf27
Drop node 12 and 14, support node 18 and 207154beb
Use husky and lint-staged9796ba6
Use prettierf181da6
npm audit4254f0a
Update minimist3fbdced
Update Studio Fail4cc686f
Upgrade Studio ESLint Config and update eslint0a4bad2
Upgrade Studio Changes3a10115
Upgrade referee-sinona61a5df
Rename master to main9d48128
State MIT license in package.jsone976dba
Add LICENSE
Released by Maximilian Antoni on 2024-01-17.
363bcc2
Response with 403 if custom authorizer responds with deny
Released by Maximilian Antoni on 2024-01-09.
- 🐛
e763f3e
Handle deny policy response from authorizer
Released by Maximilian Antoni on 2024-01-09.
- 🐛
e13d313
Fix mock response templates
Released by Maximilian Antoni on 2023-11-29.
- 🐛
49d7dca
Populate resource in proxy integration events
Released by Maximilian Antoni on 2023-11-29.
Released by Maximilian Antoni on 2023-01-20.
- 🐛
2e39414
Fix default AWS account ID
Released by Maximilian Antoni on 2021-06-23.
- 🐛
f319b9c
SetpathParameters
andqueryStringParameters
to null if empty
Released by Maximilian Antoni on 2021-06-14.
Released by Maximilian Antoni on 2021-05-25.
- 🐛
fd55e13
Adjust logging received requests
Released by Maximilian Antoni on 2021-05-21.
- 🐛
26390cf
Adjust logging received requests
Released by Maximilian Antoni on 2021-05-21.
- 🐛
b90a33d
Fail if Lambda integration httpMethod is not POST (#9)
Released by Maximilian Antoni on 2021-05-05.
- 🐛
8e5bcbc
Do not require token validation
Released by Maximilian Antoni on 2021-04-12.
- 🍏
2b001c7
Implement greedy path parameters - 🍏
b56fc27
Implement any method - 🍏
1b181e6
Implement proxy integration - 🐛
82433d8
Check for empty security config - ✨
a6d28d6
Configure npm token for CI build - ✨
a2fdd12
Pass parsed URL to integration - ✨
18f8a3f
MoveparseLamdaName
into own file - ✨
3ab3cd2
Move template parsing into integration-aws - ✨
5cf34ef
Move response handling into integration-aws - ✨
af950fc
Rename request to integration-aws - ✨
b8c3c03
Configure GitHub actions - ✨
6eb66ba
Upgrade mocha and referee-sinon - ✨
293e9cd
Upgrade eslint and eslint config - ✨
0902da9
Update dependencies - ✨
899987d
Use npm 7 - ✨
469f15d
Add .gitignore
Released by Maximilian Antoni on 2021-04-11.
- 🐛
f16523f
Fix message property when unauthorized
Released by Maximilian Antoni on 2020-07-29.
- 🐛
6c5cf73
Fix status code when unauthorized
Released by Maximilian Antoni on 2020-07-29.
- 🐛
5e88eb1
Log 404 failures - ✨
ebc0dea
Add "files" section topackage.json
- ✨
bbd95a7
Upgrade referee-sinon to v7 - ✨
2d891da
Update Mocha - ✨
5b0586a
Rename function variables to match naming convention - ✨
945a249
npm audit - ✨
daad371
Upgrade eslint to latest - ✨
5ca938d
Upgrade Mocha to latest - ✨
5635652
Upgrade @sinonjs/referee-sinon to latest - ✨
c4c7978
Update Studio Changes to v2 - 📚
f64e232
Add copyright statement
Released by Maximilian Antoni on 2020-02-28.
Released by Maximilian Antoni on 2018-12-05.
- 🍏
a45e9e9
Add support for security policy context properties - 📚
758619c
Update Studio Changes for--footer
support
Released by Maximilian Antoni on 2018-09-10.
- 🐛
887c0e6
Fix required fields check in body schema
- 🍏
45bf0d9
Add support forstage
andstageVariables
options
- 🐛
e412fbe
Fix stage variable check
- 🍏
3384515
Support stage variables
- 💥
6100329
BREAKING: Upgrade Studio Log to v2 - 🐛
cf5596e
UseBuffer.from
instead of deprecatednew Buffer
- ✨
b22cbd8
Use Sinon default sandbox - ✨
fb779b4
Use Sinon + Referee - 📚
d330f37
Add commit links with--commits
- 🍏 Cache authorization tokens according to configured ttl
- ✨ Update dependencies
- 🐛 Add
--exit
option to mocha
- 🐛 Use json-parse-better-errors
- 🐛 Use
sinon.createSandbox
instead 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-type
header instead ofaccept
- Handle invalid request exceptions
- Fix
$input.path
function to return first array element
- Swagger models now allow nested objects. However, they're not recursively validated yet.
- Fix swagger
$ref
within arrays and within$ref
ed files.
This fix makes error returned by Lambda functions behave more like the AWS API Gateway implementation.
- Support custom security Lambda functions
- Fix template
$context
access
- Handle
JSON.parse
exception 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:
--env
loads the given dotenv config file--file
allows to override the default swagger.json file--outfile
write 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
requestTemplates
and theresponseTemplates
are parsed and invoked with full$input
and$util
support. - 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