Skip to content

Commit

Permalink
Update packages/schema/lib/functional-constraints/AuthFieldisSafe.js
Browse files Browse the repository at this point in the history
Co-authored-by: Kola Erinoso <[email protected]>
  • Loading branch information
Natay and kola-er authored Jan 30, 2025
1 parent 81ba9ce commit 298e148
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ module.exports = (definition, mainSchema) => {
definitions.forEach((field, index) => {
checkAuthField(field).forEach((err) => {
err.property = `instance[${index}]`;
err.stack = err.stack.replace('instance.key', `instance[${index}].key`);
err.stack = err.stack.replace('instance.field', err.property);
errors.push(err);
});
});
Expand Down

0 comments on commit 298e148

Please sign in to comment.