MCPcopy Create free account
hub / github.com/fastify/fastify / validateAsyncQuery

Function validateAsyncQuery

lib/validation.js:234–243  ·  view source on GitHub ↗
(validatePromise, context, request)

Source from the content-addressed store, hash-verified

232}
233
234function validateAsyncQuery (validatePromise, context, request) {
235 return validatePromise
236 .then((queryResult) => {
237 if (queryResult) {
238 return wrapValidationError(queryResult, 'querystring', context.schemaErrorFormatter)
239 }
240
241 return validate(context, request, { skipParams: true, skipBody: true, skipQuery: true })
242 })
243}
244
245function validateAsyncHeaders (validatePromise, context, request) {
246 return validatePromise

Callers 1

validateFunction · 0.85

Calls 3

wrapValidationErrorFunction · 0.85
thenMethod · 0.80
validateFunction · 0.70

Tested by

no test coverage detected