Skip to content

Commit

Permalink
fix(schema): Don't initialize spec values with undefined (jquense#1160)
Browse files Browse the repository at this point in the history
Concatting schemas can overwrite previous non-undefined values with undefined
  • Loading branch information
cemalettin-work committed Dec 13, 2020
1 parent e785e1a commit 08a86c5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,6 @@ export default abstract class BaseSchema<
strict: false,
abortEarly: true,
recursive: true,
label: undefined,
meta: undefined,
nullable: false,
presence: 'optional',
...options?.spec,
Expand Down

0 comments on commit 08a86c5

Please sign in to comment.