'copy.primaryColor':format:pattern:"^#(?:[0-9a-f]{3}){1,2}$"flags:"i"message:"must be a valid hex color"
The problem is that everything breaks if copy is null.
TypeError: Cannot use 'in' operator to search for 'primaryColor' in null
at Function.v.extend.getDeepObjectValue (/Users/javve/Git/confetti/confetti-api/node_modules/validate.js/validate.js:310:18)
at Function.v.extend.runValidations (/Users/javve/Git/confetti/confetti-api/node_modules/validate.js/validate.js:66:19)
at Function.v.extend.async (/Users/javve/Git/confetti/confetti-api/node_modules/validate.js/validate.js:129:23)
The text was updated successfully, but these errors were encountered:
'copy.primaryColor':format:pattern:"^#(?:[0-9a-f]{3}){1,2}$"flags:"i"message:"must be a valid hex color"
The problem is that everything breaks if copy is null.
TypeError: Cannot use 'in' operator to search for 'primaryColor' in null
at Function.v.extend.getDeepObjectValue (/Users/javve/Git/confetti/confetti-api/node_modules/validate.js/validate.js:310:18)
at Function.v.extend.runValidations (/Users/javve/Git/confetti/confetti-api/node_modules/validate.js/validate.js:66:19)
at Function.v.extend.async (/Users/javve/Git/confetti/confetti-api/node_modules/validate.js/validate.js:129:23)
Reply to this email directly or view it on GitHub: #17
I have a constraint looking like this:
The problem is that everything breaks if
copy
is null.The text was updated successfully, but these errors were encountered: