You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for writing this, I find your library to be super helpful!
ISSUE
Upon execution of your example, I get the following error:
ReferenceError: Schema is not defined
I was not able to locate your definition/import of Schema in your code.
CODE
// custom validation function checking value for a regexconstcheckHexColor=val=>{return/^#[0-9a-fA-F]$/.test(val)}constcar=newSchema({color: {type: String,use: { checkHexColor }}})
The text was updated successfully, but these errors were encountered:
This seems to be a pure documentation issue. Just passing a base JS object instead of trying to instantiate a Schema instance works with validateSchema 🙂
Thank you for writing this, I find your library to be super helpful!
ISSUE
Upon execution of your example, I get the following error:
CODE
The text was updated successfully, but these errors were encountered: