Blake E
09/15/2021, 5:20 PMsst.Api
constructsRoss Coundon
09/15/2021, 5:21 PMthdxr
09/15/2021, 6:02 PMBlake E
09/15/2021, 6:03 PMPeter Hausken
09/15/2021, 6:11 PMBlake E
09/15/2021, 6:12 PMAdrián Mouly
09/15/2021, 6:15 PMRoss Coundon
09/15/2021, 6:29 PMAdrián Mouly
09/15/2021, 6:29 PMSimon Reilly
09/15/2021, 10:08 PMLukasz K
09/16/2021, 7:57 AMJoão Pedro
09/27/2021, 1:38 AMMaciej Gościński
11/17/2021, 5:28 PMSimon Reilly
11/17/2021, 5:34 PMMaciej Gościński
11/17/2021, 5:40 PMSimon Reilly
11/17/2021, 5:52 PMroutes: {
'GET v1/items/{itemID}': {
function: sst.Function('src/v1'),
schema: {
// Open API here, when deployed, we
// update the apigateway integration
// to validate this
}
}
}
Then my lambdas can just do business logicSimon Reilly
11/17/2021, 5:58 PMMaciej Gościński
11/17/2021, 6:04 PM$context.error.*validationErrorString*
, for example when property was of a union type, the whole error message for the body was like "Can't match schema {0} or {1}" without stating anything useful.
Also, there are a couple features of TSOA that would be very useful when parsing stuff, such as: noImplicitAdditionalProperties?: 'throw-on-extras' | 'silently-remove-extras' | 'ignore';
that we'd miss when only validating on ApiGw.
I'll be sure to let you guys know if I manage to come up with anything useful.
In the meantime we can subscribe the feature request in TSOA directly :)Simon Reilly
11/18/2021, 8:03 AMMaciej Gościński
11/18/2021, 2:58 PMSimon Reilly
11/20/2021, 7:46 AMJoão Pedro
11/21/2021, 7:30 PMserverless-http
npm package - that will give you the ability to generate routes for express.js that you can route in a single lambdajamlen
11/26/2021, 10:34 AM