Albert Gao
06/13/2021, 1:57 AMFrank
Ross Coundon
06/13/2021, 6:57 AMAlbert Gao
06/13/2021, 7:29 AMajv
has an option to try converting string to my declared type, no problems at all xDRoss Coundon
06/13/2021, 7:54 AMAlbert Gao
06/13/2021, 8:03 AM*new* Ajv({ allErrors: true, coerceTypes: true })
You gonna love itRoss Coundon
06/13/2021, 8:04 AMRoss Coundon
06/13/2021, 8:31 AMRoss Coundon
06/13/2021, 8:31 AMAlbert Gao
06/13/2021, 9:47 AMAlbert Gao
06/13/2021, 9:48 AM_IPathParams_
is a TS type infered from pathParams, which is the validate
ajv function generated from a schemaAlbert Gao
06/13/2021, 9:50 AMType.blahblah
is from this lib: https://github.com/sinclairzx81/typebox which will convert your typebox def into TS type and ajv schemaRoss Coundon
06/13/2021, 9:50 AMAlbert Gao
06/13/2021, 9:51 AM