Skip to content

Commit

Permalink
fix: use min/maxItems instead of min/maxLength in ApiProperty
Browse files Browse the repository at this point in the history
  • Loading branch information
glebbash committed Oct 1, 2021
1 parent bd35e3b commit 660ce30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ export const compose = <T>(
def !== undefined ? Transform(({ value }) => (value === undefined ? def : value)) : noop,
ApiProperty({
...apiPropertyOptions,
minLength,
maxLength,
minItems: minLength,
maxItems: maxLength,
...(nullable && { nullable }),
isArray: !!isArray,
name,
Expand Down

0 comments on commit 660ce30

Please sign in to comment.