Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…nto beta
  • Loading branch information
jorisre committed Feb 26, 2021
2 parents 6f70229 + 635344d commit 06a388b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion joi/src/joi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const joiResolver: Resolver = (
},
resolverOptions = {},
) => async (values, context, options) => {
const _schemaOptions = Object.assign(Object.assign({}, schemaOptions), {
const _schemaOptions = Object.assign({}, schemaOptions, {
context,
});

Expand Down
2 changes: 1 addition & 1 deletion yup/src/yup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const yupResolver: Resolver = (

const result = await schema[
resolverOptions.mode === 'sync' ? 'validateSync' : 'validate'
](values, Object.assign(Object.assign({}, schemaOptions), { context }));
](values, Object.assign({}, schemaOptions, { context }));

return {
values: result,
Expand Down

0 comments on commit 06a388b

Please sign in to comment.