Skip to content

Commit 59d2698

Browse files
marbemacP0lip
authored andcommitted
chore: include style in validations we track for query params
1 parent ba3ec94 commit 59d2698

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/accessors/getValidations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { SchemaNodeKind } from '../nodes/types';
44
import type { SchemaFragment } from '../types';
55
import { pick } from '../utils/pick';
66

7-
export const COMMON_VALIDATION_TYPES: string[] = ['readOnly', 'writeOnly'];
7+
export const COMMON_VALIDATION_TYPES: string[] = ['readOnly', 'writeOnly', 'style'];
88

99
const VALIDATION_TYPES: Partial<Dictionary<(keyof SchemaFragment)[], SchemaNodeKind>> = {
1010
string: ['minLength', 'maxLength', 'pattern'],

0 commit comments

Comments
 (0)