Skip to content
Myr

fix(validator): fix incomplete types and wrong tests (#4521)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by EdamAmex · committed by GitHub · parent 4960c06 · Browse files · 2 files+6 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+6 added−6 removed

  • tests:+3 added−3 removed
  • other:+3 added−3 removed

2 files+6 added−6 removed

modified:src/validator/validator.test.ts+3 added-3 removed
7 unmodified lines
8import type {9 ErrorHandler,10 ExtractSchema,11 ExtractSchemaForStatusCode,12 FormValue,13 MiddlewareHandler,13 ParsedFormValue,14 TypedResponse,15 ValidationTargets,16} from '../types'17import type { ContentfulStatusCode, StatusCode } from '../utils/http-status'
935 unmodified lines
953 '/posts/:id': {954 $put: {955 input: {956 form: {957 title: ParsedFormValue | ParsedFormValue[]957 title: FormValue | FormValue[]958 }959 } & {960 param: {961 id: string
37 unmodified lines
999 '/purge': {1000 $purge: {1001 input: {1002 form: {1003 tag: ParsedFormValue | ParsedFormValue[]1003 tag: FormValue | FormValue[]1004 }1005 } & {1006 query: {1007 q: string | string[]
363 unmodified lines
modified:src/validator/validator.ts+3 added-3 removed