Skip to content

Commit

Permalink
fix: 🐛 Correção ReferenceError em trace()
Browse files Browse the repository at this point in the history
  • Loading branch information
joaquimsn committed Mar 10, 2021
1 parent cba1158 commit 661bad5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 2
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'weekly'

# Maintain dependencies for npm
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: 'weekly'
4 changes: 2 additions & 2 deletions datalayer-validation-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,11 @@ function revalidateSchema(shadowSchema, errorMessage, dataLayer, schemaIndex, sc
* @param {*} dataLayer
*/
function checkMissingProperty(schemaItem, dataLayer) {
schemaItem.forEach((item, index, arr) => {
schemaItem.forEach((item, index, err) => {
let valid = ajv.validate(item, dataLayer);
let errors = ajv.errors;

trace(`retorno ajv ${JSON.stringify(err)}"`);
trace(`retorno ajv ${JSON.stringify(err)}`);
if (!valid) {
errors
.filter((error) => error.schema.constructor === Object && error.keyword === 'required')
Expand Down

0 comments on commit 661bad5

Please sign in to comment.