Skip to content

Commit

Permalink
fix: add split on spec keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
willfarrell committed Oct 24, 2018
1 parent 4b9df05 commit 7e10142
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,6 @@ const jsonapiDeserialise = body => {
This project is licensed under the MIT License - see the LICENSE file for details

## TODO
- deserilize middleware
- json schema definitions
- Add in jsonapi ~= for httpPartialResponse
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const request = (handler, next) => {
Object.keys(handler.event.queryStringParameters)
.filter(key => !disallowed.includes(key.split('[')[0]))
.forEach(key => {
params[key] = handler.event.queryStringParameters[key]
params[key] = handler.event.queryStringParameters[key].split(',')
})

handler.event.queryStringParameters = params
Expand Down

0 comments on commit 7e10142

Please sign in to comment.