diff --git a/404.html b/404.html index 65cafce..78c10b7 100644 --- a/404.html +++ b/404.html @@ -1 +1 @@ -404: This page could not be found
obss
logo
github_iconnpm_iconVersion: 5.0.2

404

This page could not be found.

\ No newline at end of file +404: This page could not be found
obss
logo
github_iconnpm_iconVersion: 5.0.2

404

This page could not be found.

\ No newline at end of file diff --git a/_next/static/ICS7m3ri4jqdJZJC_IkFB/_buildManifest.js b/_next/static/hcGRUI1H1GQ2wEIcs0w70/_buildManifest.js similarity index 100% rename from _next/static/ICS7m3ri4jqdJZJC_IkFB/_buildManifest.js rename to _next/static/hcGRUI1H1GQ2wEIcs0w70/_buildManifest.js diff --git a/_next/static/ICS7m3ri4jqdJZJC_IkFB/_ssgManifest.js b/_next/static/hcGRUI1H1GQ2wEIcs0w70/_ssgManifest.js similarity index 100% rename from _next/static/ICS7m3ri4jqdJZJC_IkFB/_ssgManifest.js rename to _next/static/hcGRUI1H1GQ2wEIcs0w70/_ssgManifest.js diff --git a/advanced/focus-to-error-after-submit.html b/advanced/focus-to-error-after-submit.html index 9fba2b4..b627768 100644 --- a/advanced/focus-to-error-after-submit.html +++ b/advanced/focus-to-error-after-submit.html @@ -1,4 +1,4 @@ -focusToErrorAfterSubmit
obss
logo
github_iconnpm_iconVersion: 5.0.2
focusToErrorAfterSubmitView on GitHub

focusToErrorAfterSubmit parameter is used to automatically focus to the first element with a validation error. In order to find the element on DOM, path value should be equal to the HTML element ID. If DOM element ID is different than path value, then the DOM element ID should be passed as elementId param to the rule definition.

Validation Result: validationresultvalid
[ +focusToErrorAfterSubmit
obss
logo
github_iconnpm_iconVersion: 5.0.2
focusToErrorAfterSubmitView on GitHub

focusToErrorAfterSubmit parameter is used to automatically focus to the first element with a validation error. In order to find the element on DOM, path value should be equal to the HTML element ID. If DOM element ID is different than path value, then the DOM element ID should be passed as elementId param to the rule definition.

Validation Result: validationresultvalid
[ { "path": "textVal1", "ruleSet": [ @@ -42,4 +42,4 @@ } ] } -]
\ No newline at end of file +]
\ No newline at end of file diff --git a/advanced/focus-to-error-on-list-after-submit.html b/advanced/focus-to-error-on-list-after-submit.html index 03a1deb..62e276d 100644 --- a/advanced/focus-to-error-on-list-after-submit.html +++ b/advanced/focus-to-error-on-list-after-submit.html @@ -1,4 +1,4 @@ -focusToErrorAfterSubmit on Lists
obss
logo
github_iconnpm_iconVersion: 5.0.2
focusToErrorAfterSubmit on ListsView on GitHub

focusToErrorAfterSubmit parameter is used to automatically focus to the first element of list with validation errors. In order to find the element on DOM, listPath value and index of the list should be equal to the HTML element ID in a format listPath{index}. If DOM list element ID prefix is different than listPath value, then the DOM element ID prefix should be passed as listElementId param to the rule definition.

Validation Result: validationresultvalid
[ +focusToErrorAfterSubmit on Lists
obss
logo
github_iconnpm_iconVersion: 5.0.2
focusToErrorAfterSubmit on ListsView on GitHub

focusToErrorAfterSubmit parameter is used to automatically focus to the first element of list with validation errors. In order to find the element on DOM, listPath value and index of the list should be equal to the HTML element ID in a format listPath{index}. If DOM list element ID prefix is different than listPath value, then the DOM element ID prefix should be passed as listElementId param to the rule definition.

Validation Result: validationresultvalid
[ { "listPath": "listChild", "ruleSet": [ @@ -20,4 +20,4 @@ ], "elementId": "listErrorFocusElement" } -]
\ No newline at end of file +]
\ No newline at end of file diff --git a/advanced/hide-before-submit.html b/advanced/hide-before-submit.html index 511c43e..7ed1c3c 100644 --- a/advanced/hide-before-submit.html +++ b/advanced/hide-before-submit.html @@ -1,4 +1,4 @@ -hideBeforeSubmit
obss
logo
github_iconnpm_iconVersion: 5.0.2
hideBeforeSubmitView on GitHub

hideBeforeSubmit parameter is used to hide validation errors before setFormIsSubmitted() function is called. Later, validation errors can also be hidden by calling resetForm() function.

Validation Result: validationresultvalid
[ +hideBeforeSubmit
obss
logo
github_iconnpm_iconVersion: 5.0.2
hideBeforeSubmitView on GitHub

hideBeforeSubmit parameter is used to hide validation errors before setFormIsSubmitted() function is called. Later, validation errors can also be hidden by calling resetForm() function.

Validation Result: validationresultvalid
[ { "path": "textVal1", "ruleSet": [ @@ -42,4 +42,4 @@ } ] } -]
\ No newline at end of file +]
\ No newline at end of file diff --git a/advanced/show-after-blur.html b/advanced/show-after-blur.html index 53bd242..5554ad1 100644 --- a/advanced/show-after-blur.html +++ b/advanced/show-after-blur.html @@ -1,4 +1,4 @@ -showAfterBlur
obss
logo
github_iconnpm_iconVersion: 5.0.2
showAfterBlurView on GitHub

showAfterBlur parameter is used to show validation error of a path after setPathIsBlurred(path) function is called. Later, validation errors can also be hidden by calling resetForm() function.

Validation Result: validationresultvalid
[ +showAfterBlur
obss
logo
github_iconnpm_iconVersion: 5.0.2
showAfterBlurView on GitHub

showAfterBlur parameter is used to show validation error of a path after setPathIsBlurred(path) function is called. Later, validation errors can also be hidden by calling resetForm() function.

Validation Result: validationresultvalid
[ { "path": "textVal1", "ruleSet": [ @@ -42,4 +42,4 @@ } ] } -]
\ No newline at end of file +]
\ No newline at end of file diff --git a/advanced/validate-complex-forms.html b/advanced/validate-complex-forms.html index 3ae1edd..14faa4e 100644 --- a/advanced/validate-complex-forms.html +++ b/advanced/validate-complex-forms.html @@ -1,4 +1,4 @@ -Validate Complex Forms
obss
logo
github_iconnpm_iconVersion: 5.0.2
Validate Complex FormsView on GitHubView on GitHubView on GitHub

react-validatable-form can handle validation of complex forms. The form can have multiple paths, listPaths and subcomponents.

disable all subkey2 rows

Validation Result: validationresultvalid
[ +Validate Complex Forms
obss
logo
github_iconnpm_iconVersion: 5.0.2
Validate Complex FormsView on GitHubView on GitHubView on GitHub

react-validatable-form can handle validation of complex forms. The form can have multiple paths, listPaths and subcomponents.

disable all subkey2 rows

Validation Result: validationresultvalid
[ { "path": "child1", "ruleSet": [ @@ -97,4 +97,4 @@ "required" ] } -]
\ No newline at end of file +]
\ No newline at end of file diff --git a/advanced/validate-list-of-objects.html b/advanced/validate-list-of-objects.html index c576979..a6e7fca 100644 --- a/advanced/validate-list-of-objects.html +++ b/advanced/validate-list-of-objects.html @@ -1,4 +1,4 @@ -Validate List of Objects
obss
logo
github_iconnpm_iconVersion: 5.0.2
Validate List of ObjectsView on GitHub

An array of objects with more than one subkeys can be validated using listPath and each subkey can have different rules which should be defined in subRules key.

disable all subkey2 rows

disable

Validation Result: validationresultvalid
[ +Validate List of Objects
obss
logo
github_iconnpm_iconVersion: 5.0.2
Validate List of ObjectsView on GitHub

An array of objects with more than one subkeys can be validated using listPath and each subkey can have different rules which should be defined in subRules key.

disable all subkey2 rows

disable

Validation Result: validationresultvalid
[ { "listPath": "listChild", "subRules": [ @@ -49,4 +49,4 @@ ], "elementId": "listErrorFocusElement" } -]
\ No newline at end of file +]
\ No newline at end of file diff --git a/advanced/validate-lists.html b/advanced/validate-lists.html index dadc6d5..1b7a69c 100644 --- a/advanced/validate-lists.html +++ b/advanced/validate-lists.html @@ -1,4 +1,4 @@ -Validate Lists
obss
logo
github_iconnpm_iconVersion: 5.0.2
Validate ListsView on GitHub

An array of values can be validated using listPath key.

Validation Result: validationresultvalid
[ +Validate Lists
obss
logo
github_iconnpm_iconVersion: 5.0.2
Validate ListsView on GitHub

An array of values can be validated using listPath key.

Validation Result: validationresultvalid
[ { "path": "listChild", "ruleSet": [ @@ -19,4 +19,4 @@ } ] } -]
\ No newline at end of file +]
\ No newline at end of file diff --git a/customizations/apply-to-nulls.html b/customizations/apply-to-nulls.html index 69be482..59bbc28 100644 --- a/customizations/apply-to-nulls.html +++ b/customizations/apply-to-nulls.html @@ -1,4 +1,4 @@ -applyToNulls
obss
logo
github_iconnpm_iconVersion: 5.0.2
applyToNullsView on GitHub

By default react-validatable-form interprets undefined, null, empty string or empty array values as valid values. If you want any rule to be applied to these values, applyToNulls parameter should be used.

Validation Result: validationresultvalid
[ +applyToNulls
obss
logo
github_iconnpm_iconVersion: 5.0.2
applyToNullsView on GitHub

By default react-validatable-form interprets undefined, null, empty string or empty array values as valid values. If you want any rule to be applied to these values, applyToNulls parameter should be used.

Validation Result: validationresultvalid
[ { "path": "val1", "ruleSet": [ @@ -103,4 +103,4 @@ } ] } -]
\ No newline at end of file +]
\ No newline at end of file diff --git a/customizations/conditional-rules.html b/customizations/conditional-rules.html index 6c08899..0869ff4 100644 --- a/customizations/conditional-rules.html +++ b/customizations/conditional-rules.html @@ -1,4 +1,4 @@ -disableIf & enableIf
obss
logo
github_iconnpm_iconVersion: 5.0.2
disableIf & enableIfView on GitHub

Any validation rule can be disabled if the defined disableIf function returns true. Any validation rule can only be enabled if the defined enableIf function returns true.

Validation Result: validationresultvalid
[ +disableIf & enableIf
obss
logo
github_iconnpm_iconVersion: 5.0.2
disableIf & enableIfView on GitHub

Any validation rule can be disabled if the defined disableIf function returns true. Any validation rule can only be enabled if the defined enableIf function returns true.

Validation Result: validationresultvalid
[ { "path": "val1", "ruleSet": [ @@ -23,4 +23,4 @@ "enableVal2Rule" ] } -]
\ No newline at end of file +]
\ No newline at end of file diff --git a/customizations/custom-element-focus-handler.html b/customizations/custom-element-focus-handler.html index d6fb43a..736b8b0 100644 --- a/customizations/custom-element-focus-handler.html +++ b/customizations/custom-element-focus-handler.html @@ -1,4 +1,4 @@ -elementFocusHandler
obss
logo
github_iconnpm_iconVersion: 5.0.2
elementFocusHandlerView on GitHub

elementFocusHandler parameter is used to manually handle focusing to the first element with a validation error.

Validation Result: validationresultvalid
[ +elementFocusHandler
obss
logo
github_iconnpm_iconVersion: 5.0.2
elementFocusHandlerView on GitHub

elementFocusHandler parameter is used to manually handle focusing to the first element with a validation error.

Validation Result: validationresultvalid
[ { "path": "textVal1", "ruleSet": [ @@ -42,4 +42,4 @@ } ] } -]
\ No newline at end of file +]
\ No newline at end of file diff --git a/customizations/custom-message.html b/customizations/custom-message.html index 14bd39d..17e44b9 100644 --- a/customizations/custom-message.html +++ b/customizations/custom-message.html @@ -1,4 +1,4 @@ -customMessage
obss
logo
github_iconnpm_iconVersion: 5.0.2
customMessageView on GitHub

Validation error message of a rule can be customized by passing customMessage param to the rule.

Validation Result: validationresultvalid
[ +customMessage
obss
logo
github_iconnpm_iconVersion: 5.0.2
customMessageView on GitHub

Validation error message of a rule can be customized by passing customMessage param to the rule.

Validation Result: validationresultvalid
[ { "path": "val1", "ruleSet": [ @@ -64,4 +64,4 @@ } ] } -]
\ No newline at end of file +]
\ No newline at end of file diff --git a/customizations/translations.html b/customizations/translations.html index e222153..32adbc0 100644 --- a/customizations/translations.html +++ b/customizations/translations.html @@ -1,4 +1,4 @@ -translations
obss
logo
github_iconnpm_iconVersion: 5.0.2
translationsView on GitHubView on GitHub

Validation error messages of any rules can be customized in app by passing translations param to ReactValidatableFormProvider.

Validation Result: validationresultvalid
[ +translations
obss
logo
github_iconnpm_iconVersion: 5.0.2
translationsView on GitHubView on GitHub

Validation error messages of any rules can be customized in app by passing translations param to ReactValidatableFormProvider.

Validation Result: validationresultvalid
[ { "path": "val1", "ruleSet": [ @@ -26,4 +26,4 @@ "email" ] } -]
\ No newline at end of file +]
\ No newline at end of file diff --git a/examples/antd.html b/examples/antd.html index e646aa7..2f97fd6 100644 --- a/examples/antd.html +++ b/examples/antd.html @@ -1,4 +1,4 @@ -Example Usage with Ant Design Components
obss
logo
github_iconnpm_iconVersion: 5.0.2
Example Usage with Ant Design ComponentsView on GitHub
Validation Result: validationresultvalid
[ +Example Usage with Ant Design Components
obss
logo
github_iconnpm_iconVersion: 5.0.2
Example Usage with Ant Design ComponentsView on GitHub
Validation Result: validationresultvalid
[ { "path": "textVal1", "ruleSet": [ @@ -31,4 +31,4 @@ } ] } -]
\ No newline at end of file +]
\ No newline at end of file diff --git a/examples/form-data.html b/examples/form-data.html index d1039f6..5b360b2 100644 --- a/examples/form-data.html +++ b/examples/form-data.html @@ -1,4 +1,4 @@ -formData
obss
logo
github_iconnpm_iconVersion: 5.0.2
formDataView on GitHub
Please wait for 2 seconds...

Validation Result: validationresultvalid
{}
[ +formData
obss
logo
github_iconnpm_iconVersion: 5.0.2
formDataView on GitHub
Please wait for 2 seconds...

Validation Result: validationresultvalid
{}
[ { "path": "textVal1", "ruleSet": [ @@ -31,4 +31,4 @@ } ] } -]
\ No newline at end of file +]
\ No newline at end of file diff --git a/examples/is-path-valid.html b/examples/is-path-valid.html index 100c87e..957b319 100644 --- a/examples/is-path-valid.html +++ b/examples/is-path-valid.html @@ -1,4 +1,4 @@ -isPathValid
obss
logo
github_iconnpm_iconVersion: 5.0.2
isPathValidView on GitHub
Validation Result: validationresultvalid
[ +isPathValid
obss
logo
github_iconnpm_iconVersion: 5.0.2
isPathValidView on GitHub
Validation Result: validationresultvalid
[ { "path": "textVal1", "ruleSet": [ @@ -31,4 +31,4 @@ } ] } -]
\ No newline at end of file +]
\ No newline at end of file diff --git a/examples/mui.html b/examples/mui.html index 2ef4d59..956e56a 100644 --- a/examples/mui.html +++ b/examples/mui.html @@ -1,4 +1,4 @@ -Example Usage with MUI Components
obss
logo
github_iconnpm_iconVersion: 5.0.2
Example Usage with MUI ComponentsView on GitHub

Validation Result: validationresultvalid
[ +Example Usage with MUI Components
obss
logo
github_iconnpm_iconVersion: 5.0.2
Example Usage with MUI ComponentsView on GitHub

Validation Result: validationresultvalid
[ { "path": "textVal1", "ruleSet": [ @@ -31,4 +31,4 @@ } ] } -]
\ No newline at end of file +]
\ No newline at end of file diff --git a/examples/prime-react.html b/examples/prime-react.html index f73bf62..d22147b 100644 --- a/examples/prime-react.html +++ b/examples/prime-react.html @@ -1,4 +1,4 @@ -Example Usage with PrimeReact Components
obss
logo
github_iconnpm_iconVersion: 5.0.2
Example Usage with PrimeReact ComponentsView on GitHub
empty
Validation Result: validationresultvalid
[ +Example Usage with PrimeReact Components
obss
logo
github_iconnpm_iconVersion: 5.0.2
Example Usage with PrimeReact ComponentsView on GitHub
empty
Validation Result: validationresultvalid
[ { "path": "textVal1", "ruleSet": [ @@ -31,4 +31,4 @@ } ] } -]
\ No newline at end of file +]
\ No newline at end of file diff --git a/examples/pure.html b/examples/pure.html index a47c129..cd55c9d 100644 --- a/examples/pure.html +++ b/examples/pure.html @@ -1,4 +1,4 @@ -Example Usage with Pure React Components
obss
logo
github_iconnpm_iconVersion: 5.0.2
Example Usage with Pure React ComponentsView on GitHub
Validation Result: validationresultvalid
[ +Example Usage with Pure React Components
obss
logo
github_iconnpm_iconVersion: 5.0.2
Example Usage with Pure React ComponentsView on GitHub
Validation Result: validationresultvalid
[ { "path": "textVal1", "ruleSet": [ @@ -31,4 +31,4 @@ } ] } -]
\ No newline at end of file +]
\ No newline at end of file diff --git a/examples/react-bootstrap.html b/examples/react-bootstrap.html index 8da90bc..ac7c844 100644 --- a/examples/react-bootstrap.html +++ b/examples/react-bootstrap.html @@ -1,4 +1,4 @@ -Example Usage with React-Bootstrap Components
obss
logo
github_iconnpm_iconVersion: 5.0.2
Example Usage with React-Bootstrap ComponentsView on GitHub
Validation Result: validationresultvalid
[ +Example Usage with React-Bootstrap Components
obss
logo
github_iconnpm_iconVersion: 5.0.2
Example Usage with React-Bootstrap ComponentsView on GitHub
Validation Result: validationresultvalid
[ { "path": "textVal1", "ruleSet": [ @@ -31,4 +31,4 @@ } ] } -]
\ No newline at end of file +]
\ No newline at end of file diff --git a/examples/react-native.html b/examples/react-native.html index 80b632a..56010c8 100644 --- a/examples/react-native.html +++ b/examples/react-native.html @@ -1 +1 @@ -Example Usage with React Native
obss
logo
github_iconnpm_iconVersion: 5.0.2
Example Usage with React NativeView on GitHub
\ No newline at end of file +Example Usage with React Native
obss
logo
github_iconnpm_iconVersion: 5.0.2
Example Usage with React NativeView on GitHub
\ No newline at end of file diff --git a/examples/set-form-data-and-rules.html b/examples/set-form-data-and-rules.html index bb9ff9c..554c847 100644 --- a/examples/set-form-data-and-rules.html +++ b/examples/set-form-data-and-rules.html @@ -1,4 +1,4 @@ -setFormDataAndRules
obss
logo
github_iconnpm_iconVersion: 5.0.2
setFormDataAndRulesView on GitHub
Please wait for 2 seconds...

Validation Result: validationresultvalid
[ +setFormDataAndRules
obss
logo
github_iconnpm_iconVersion: 5.0.2
setFormDataAndRulesView on GitHub
Please wait for 2 seconds...

Validation Result: validationresultvalid
[ { "path": "textVal1", "ruleSet": [ @@ -31,4 +31,4 @@ } ] } -]
\ No newline at end of file +]
\ No newline at end of file diff --git a/examples/set-form-data.html b/examples/set-form-data.html index b755d81..64b7d34 100644 --- a/examples/set-form-data.html +++ b/examples/set-form-data.html @@ -1,4 +1,4 @@ -setFormData
obss
logo
github_iconnpm_iconVersion: 5.0.2
setFormDataView on GitHub
Please wait for 2 seconds...

Validation Result: validationresultvalid
[ +setFormData
obss
logo
github_iconnpm_iconVersion: 5.0.2
setFormDataView on GitHub
Please wait for 2 seconds...

Validation Result: validationresultvalid
[ { "path": "textVal1", "ruleSet": [ @@ -31,4 +31,4 @@ } ] } -]
\ No newline at end of file +]
\ No newline at end of file diff --git a/examples/set-path-value.html b/examples/set-path-value.html index 980fd07..93c107e 100644 --- a/examples/set-path-value.html +++ b/examples/set-path-value.html @@ -1,4 +1,4 @@ -setPathValue
obss
logo
github_iconnpm_iconVersion: 5.0.2
setPathValueView on GitHub
Please wait for 2 seconds...

Validation Result: validationresultvalid
[ +setPathValue
obss
logo
github_iconnpm_iconVersion: 5.0.2
setPathValueView on GitHub
Please wait for 2 seconds...

Validation Result: validationresultvalid
[ { "path": "textVal1", "ruleSet": [ @@ -31,4 +31,4 @@ } ] } -]
\ No newline at end of file +]
\ No newline at end of file diff --git a/examples/set-rules.html b/examples/set-rules.html index 54bdb56..3574afd 100644 --- a/examples/set-rules.html +++ b/examples/set-rules.html @@ -1,4 +1,4 @@ -setRules
obss
logo
github_iconnpm_iconVersion: 5.0.2
setRulesView on GitHub
Click "Change Rule" button to set new rules

Europe

Validation Result: validationresultvalid
[ +setRules
obss
logo
github_iconnpm_iconVersion: 5.0.2
setRulesView on GitHub
Click "Change Rule" button to set new rules

Europe

Validation Result: validationresultvalid
[ { "path": "textVal1", "ruleSet": [ @@ -31,4 +31,4 @@ } ] } -]
\ No newline at end of file +]
\ No newline at end of file diff --git a/examples/unset-path-is-blurred.html b/examples/unset-path-is-blurred.html index 9f7a762..1ccbb55 100644 --- a/examples/unset-path-is-blurred.html +++ b/examples/unset-path-is-blurred.html @@ -1,4 +1,4 @@ -unsetPathIsBlurred
obss
logo
github_iconnpm_iconVersion: 5.0.2
unsetPathIsBlurredView on GitHub
Please wait for 2 seconds...

Validation Result: validationresultvalid
{}
[ +unsetPathIsBlurred
obss
logo
github_iconnpm_iconVersion: 5.0.2
unsetPathIsBlurredView on GitHub
Please wait for 2 seconds...

Validation Result: validationresultvalid
{}
[ { "path": "textVal1", "ruleSet": [ @@ -31,4 +31,4 @@ } ] } -]
\ No newline at end of file +]
\ No newline at end of file diff --git a/examples/unset-path-value.html b/examples/unset-path-value.html index a0abc0d..0bbce81 100644 --- a/examples/unset-path-value.html +++ b/examples/unset-path-value.html @@ -1,4 +1,4 @@ -unsetPathValue
obss
logo
github_iconnpm_iconVersion: 5.0.2
unsetPathValueView on GitHub
Please wait for 2 seconds...

Validation Result: validationresultvalid
{}
[ +unsetPathValue
obss
logo
github_iconnpm_iconVersion: 5.0.2
unsetPathValueView on GitHub
Please wait for 2 seconds...

Validation Result: validationresultvalid
{}
[ { "path": "textVal1", "ruleSet": [ @@ -31,4 +31,4 @@ } ] } -]
\ No newline at end of file +]
\ No newline at end of file diff --git a/examples/validation-error-original-result.html b/examples/validation-error-original-result.html index 68996a7..39bdae7 100644 --- a/examples/validation-error-original-result.html +++ b/examples/validation-error-original-result.html @@ -1,4 +1,4 @@ -validationErrorOriginalResult
obss
logo
github_iconnpm_iconVersion: 5.0.2
validationErrorOriginalResultView on GitHub
Please wait for 2 seconds...

Validation Result: validationresultvalid
{}
{}
[ +validationErrorOriginalResult
obss
logo
github_iconnpm_iconVersion: 5.0.2
validationErrorOriginalResultView on GitHub
Please wait for 2 seconds...

Validation Result: validationresultvalid
{}
{}
[ { "path": "textVal1", "ruleSet": [ @@ -31,4 +31,4 @@ } ] } -]
\ No newline at end of file +]
\ No newline at end of file diff --git a/examples/validation-error.html b/examples/validation-error.html index 7f05cc6..9ff73da 100644 --- a/examples/validation-error.html +++ b/examples/validation-error.html @@ -1,4 +1,4 @@ -validationError
obss
logo
github_iconnpm_iconVersion: 5.0.2
validationErrorView on GitHub
Please wait for 2 seconds...

Validation Result: validationresultvalid
{}
[ +validationError
obss
logo
github_iconnpm_iconVersion: 5.0.2
validationErrorView on GitHub
Please wait for 2 seconds...

Validation Result: validationresultvalid
{}
[ { "path": "textVal1", "ruleSet": [ @@ -31,4 +31,4 @@ } ] } -]
\ No newline at end of file +]
\ No newline at end of file diff --git a/getting-started/home.html b/getting-started/home.html index 40f3ced..23345a6 100644 --- a/getting-started/home.html +++ b/getting-started/home.html @@ -1 +1 @@ -react-validatable-form
obss
logo
github_iconnpm_iconVersion: 5.0.2
logo

react-validatable-form

react-validatable-form is a React hook that is used to create dynamic client side validations on React forms.
npmlicensegithubissuevulnerabilitiesdownloadsize
GitHubContact Us
\ No newline at end of file +react-validatable-form
obss
logo
github_iconnpm_iconVersion: 5.0.2
logo

react-validatable-form

react-validatable-form is a React hook that is used to create dynamic client side validations on React forms.
npmlicensegithubissuevulnerabilitiesdownloadsize
GitHubContact Us
\ No newline at end of file diff --git a/getting-started/installation.html b/getting-started/installation.html index a678e10..faa49e3 100644 --- a/getting-started/installation.html +++ b/getting-started/installation.html @@ -1 +1 @@ -Installation
obss
logo
github_iconnpm_iconVersion: 5.0.2
Installation

react-validatable-form is a React hook that is used to create dynamic client side validations on React forms.

\ No newline at end of file +Installation
obss
logo
github_iconnpm_iconVersion: 5.0.2
Installation

react-validatable-form is a React hook that is used to create dynamic client side validations on React forms.

\ No newline at end of file diff --git a/getting-started/usage.html b/getting-started/usage.html index a8cdb43..fd19a6b 100644 --- a/getting-started/usage.html +++ b/getting-started/usage.html @@ -1,4 +1,4 @@ -Usage
obss
logo
github_iconnpm_iconVersion: 5.0.2
Usage
react-validatable-form is based on Context. useValidatableForm hook should be used inside ReactValidatableFormProvider. Wrap your App inside ReactValidatableFormProvider and pass the app-scoped props. Example usage of ReactValidatableFormProvider: See API
import { ReactValidatableFormProvider } from 'react-validatable-form'; +Usage
obss
logo
github_iconnpm_iconVersion: 5.0.2
Usage
react-validatable-form is based on Context. useValidatableForm hook should be used inside ReactValidatableFormProvider. Wrap your App inside ReactValidatableFormProvider and pass the app-scoped props. Example usage of ReactValidatableFormProvider: See API
import { ReactValidatableFormProvider } from 'react-validatable-form'; //.... return <ReactValidatableFormProvider> @@ -28,4 +28,4 @@ value={getValue('val') || ''} onChange={(e) => setPathValue('val', e.target.value)} />; -
\ No newline at end of file +
\ No newline at end of file diff --git a/index.html b/index.html index 7295e46..b904cb9 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -
obss
logo
github_iconnpm_iconVersion: 5.0.2
Redirecting Homepage...
\ No newline at end of file +
obss
logo
github_iconnpm_iconVersion: 5.0.2
Redirecting Homepage...
\ No newline at end of file diff --git a/library-api/path.html b/library-api/path.html index 0d8a924..46f06eb 100644 --- a/library-api/path.html +++ b/library-api/path.html @@ -1,4 +1,4 @@ -Path
obss
logo
github_iconnpm_iconVersion: 5.0.2
Path

Path is a string value that is used to access any value on the formData using lodash get method.

This table shows how to use path and listPath keys for the following code.

Path TypeUsage Example
Update value of first level childsetPathValue('child1', newValue)
Update value of second level childsetPathValue('child3.subchild1', newValue)
Update value of list's element at 0th indexsetPathValue('listChild[0]', newValue)
Update value of list of object's element at 0th index with key subkey1setPathValue('listChild[0].subkey1', newValue)
Get value of first level childgetValue('child1')
Get value of second level childgetValue('child3.subchild1')
Get value of list's element at 0th indexgetValue('listChild[0]')
Get value of list of object's element at 0th index with key subkey1getValue('listChild[0].subkey1')
Get error of first level childgetError('child1')
Get error of second level childgetError('child3.subchild1')
Get error of list's element at 0th indexgetError('listChild{0}')
Get error of list of object's element at 0th index with key subkey1getError('listChild{0}.subkey1')
Unset value and key of first level childunsetPathValue('child1')
Unset value and key of second level childunsetPathValue('child3.subchild1')
Unset value and key of list's element at 0th indexunsetPathValue('listChild[0]')
Unset value and key of list of object's element at 0th index with key subkey1unsetPathValue('listChild[0].subkey1')
+Path
obss
logo
github_iconnpm_iconVersion: 5.0.2
Path

Path is a string value that is used to access any value on the formData using lodash get method.

This table shows how to use path and listPath keys for the following code.

Path TypeUsage Example
Update value of first level childsetPathValue('child1', newValue)
Update value of second level childsetPathValue('child3.subchild1', newValue)
Update value of list's element at 0th indexsetPathValue('listChild[0]', newValue)
Update value of list of object's element at 0th index with key subkey1setPathValue('listChild[0].subkey1', newValue)
Get value of first level childgetValue('child1')
Get value of second level childgetValue('child3.subchild1')
Get value of list's element at 0th indexgetValue('listChild[0]')
Get value of list of object's element at 0th index with key subkey1getValue('listChild[0].subkey1')
Get error of first level childgetError('child1')
Get error of second level childgetError('child3.subchild1')
Get error of list's element at 0th indexgetError('listChild{0}')
Get error of list of object's element at 0th index with key subkey1getError('listChild{0}.subkey1')
Unset value and key of first level childunsetPathValue('child1')
Unset value and key of second level childunsetPathValue('child3.subchild1')
Unset value and key of list's element at 0th indexunsetPathValue('listChild[0]')
Unset value and key of list of object's element at 0th index with key subkey1unsetPathValue('listChild[0].subkey1')
////////////-- example rules --/////////// const rules = [ { path: 'child1', ruleSet: ['required'] }, @@ -48,4 +48,4 @@ "listChild{1}.subkey2": "This field is required", // list of object's child } -
\ No newline at end of file +
\ No newline at end of file diff --git a/library-api/react-validatable-form-provider.html b/library-api/react-validatable-form-provider.html index ccb7b85..8115a58 100644 --- a/library-api/react-validatable-form-provider.html +++ b/library-api/react-validatable-form-provider.html @@ -1,4 +1,4 @@ -ReactValidatableFormProvider
obss
logo
github_iconnpm_iconVersion: 5.0.2
ReactValidatableFormProvider
<ReactValidatableFormProvider +ReactValidatableFormProvider
obss
logo
github_iconnpm_iconVersion: 5.0.2
ReactValidatableFormProvider
<ReactValidatableFormProvider lang={lang} customRules={customRules} translations={translations} @@ -10,4 +10,4 @@ elementFocusHandler={elementFocusHandler} > <App /> -</ReactValidatableFormProvider>
Provider Parameters
See Example Usages
lang (string)
Selected language to show validation errors.
customRules (object)
Custom rules that are specific to app and that can used at any component wrapped by the provider.
translations (object)
Custom translation objects to override default error messages or to add a new language for error messages.
dateFormatterFunction (function)
Function that is used to format dates used in date rule without withTime option.
dateWithTimeFormatterFunction (function)
Function that is used to format dates used in date rule with withTime option.
hideBeforeSubmit (boolean)
Flag to hide validation errors before setFormIsSubmitted function is called.
showAfterBlur (boolean)
Flag to hide validation errors before setPathIsBlurred function is called for any path.
focusToErrorAfterSubmit (boolean)
Flag to automatically focus to first HTML element with validation error after setFormIsSubmitted function is called.
elementFocusHandler (function)
Function that accepts the first "elementId" of current validation errors as parameter that is used to customly manage DOM after submit.
\ No newline at end of file +</ReactValidatableFormProvider>
Provider Parameters
See Example Usages
lang (string)
Selected language to show validation errors.
customRules (object)
Custom rules that are specific to app and that can used at any component wrapped by the provider.
translations (object)
Custom translation objects to override default error messages or to add a new language for error messages.
dateFormatterFunction (function)
Function that is used to format dates used in date rule without withTime option.
dateWithTimeFormatterFunction (function)
Function that is used to format dates used in date rule with withTime option.
hideBeforeSubmit (boolean)
Flag to hide validation errors before setFormIsSubmitted function is called.
showAfterBlur (boolean)
Flag to hide validation errors before setPathIsBlurred function is called for any path.
focusToErrorAfterSubmit (boolean)
Flag to automatically focus to first HTML element with validation error after setFormIsSubmitted function is called.
elementFocusHandler (function)
Function that accepts the first "elementId" of current validation errors as parameter that is used to customly manage DOM after submit.
\ No newline at end of file diff --git a/library-api/rule.html b/library-api/rule.html index 3633f51..5d77162 100644 --- a/library-api/rule.html +++ b/library-api/rule.html @@ -1,4 +1,4 @@ -Rule
obss
logo
github_iconnpm_iconVersion: 5.0.2
Rule
ruleSet: [ +Rule
obss
logo
github_iconnpm_iconVersion: 5.0.2
Rule
ruleSet: [ { rule: 'required', customMessage: 'This list should not be empty' }, { rule: 'listSize', greaterThan: 2 }, -],
Rule Definition Parameters
rule (string || func)
Identifier (name) of the rule to be run. (Can also be a custom function)
equalTo, lessThan, lessThanOrEqualTo, greaterThan, greaterThanOrEqualTo, notEqualTo (any || function)
Comparison identifier that can be used only by number, length, listSize and date rules.
equalTo See Example
The equality identifier that can be used with the equality rule.
isOneOf See Example
Checking that it is included in the list available with the equality rule
onlyIntegers (boolean)
Decides whether only integer are allowed that can be used only by number rule.
withTime (boolean)
Decides whether hours and minutes are taken into account that can be used only by date rule.
applyToNulls (boolean) See Example
Decides whether the rule should also be run on null values.
disableIf (func) See Example
Disables running the rule if the return value of the function is truthy.
enableIf (func) See Example
Enables running the rule if the return value of the function is truthy.
customMessage (string || func) See Example
Function to override default error message for the rule.
\ No newline at end of file +],
Rule Definition Parameters
rule (string || func)
Identifier (name) of the rule to be run. (Can also be a custom function)
equalTo, lessThan, lessThanOrEqualTo, greaterThan, greaterThanOrEqualTo, notEqualTo (any || function)
Comparison identifier that can be used only by number, length, listSize and date rules.
equalTo See Example
The equality identifier that can be used with the equality rule.
isOneOf See Example
Checking that it is included in the list available with the equality rule
onlyIntegers (boolean)
Decides whether only integer are allowed that can be used only by number rule.
withTime (boolean)
Decides whether hours and minutes are taken into account that can be used only by date rule.
applyToNulls (boolean) See Example
Decides whether the rule should also be run on null values.
disableIf (func) See Example
Disables running the rule if the return value of the function is truthy.
enableIf (func) See Example
Enables running the rule if the return value of the function is truthy.
customMessage (string || func) See Example
Function to override default error message for the rule.
\ No newline at end of file diff --git a/library-api/rules.html b/library-api/rules.html index 69da6e8..d61a0e7 100644 --- a/library-api/rules.html +++ b/library-api/rules.html @@ -1,4 +1,4 @@ -rules
obss
logo
github_iconnpm_iconVersion: 5.0.2
rules
const rules = [ +rules
obss
logo
github_iconnpm_iconVersion: 5.0.2
rules
const rules = [ { listPath: 'listChild', subRules: [ @@ -41,4 +41,4 @@ { path: 'bottomElement2', ruleSet: [{ rule: 'length', greaterThan: 3, applyToNulls: true }] }, { path: 'subComponentElement1', ruleSet: ['required'] }, { path: 'subComponentElement2', ruleSet: ['required'] }, -];
Rules Array Parameters
path (string) See Path API
Path of the value on formData to run the rule.
listPath (string) See Path API
Path of the values of a list on formData to run the rules on each elements of the list.
ruleSet (array) See Rule API
Rules to be applied to the value on path (Can be string or rule object).
elementId (string)
Custom elementId to focus after submit (path is used if empty).
listElementId (string)
Custom listElementId prefix to focus to elements with validation errors after submit (listPath is used if empty).
dependantPaths (array)
Array of paths that should trigger running the validation when there is a change on those paths.
disableFocusAfterSubmit (boolean)
Disable searching for element with given path to focus after submit if there is a validation error.
subRules (array)
Rules to be applied to the subpaths of the given list (can only be used with listPath).
\ No newline at end of file +];
Rules Array Parameters
path (string) See Path API
Path of the value on formData to run the rule.
listPath (string) See Path API
Path of the values of a list on formData to run the rules on each elements of the list.
ruleSet (array) See Rule API
Rules to be applied to the value on path (Can be string or rule object).
elementId (string)
Custom elementId to focus after submit (path is used if empty).
listElementId (string)
Custom listElementId prefix to focus to elements with validation errors after submit (listPath is used if empty).
dependantPaths (array)
Array of paths that should trigger running the validation when there is a change on those paths.
disableFocusAfterSubmit (boolean)
Disable searching for element with given path to focus after submit if there is a validation error.
subRules (array)
Rules to be applied to the subpaths of the given list (can only be used with listPath).
\ No newline at end of file diff --git a/library-api/use-validatable-form.html b/library-api/use-validatable-form.html index 3cfcf97..d62b686 100644 --- a/library-api/use-validatable-form.html +++ b/library-api/use-validatable-form.html @@ -1,4 +1,4 @@ -useValidatableForm
obss
logo
github_iconnpm_iconVersion: 5.0.2
useValidatableForm
const {isValid, validationError, validationErrorOriginalResult, formData, setPathValue, +useValidatableForm
obss
logo
github_iconnpm_iconVersion: 5.0.2
useValidatableForm
const {isValid, validationError, validationErrorOriginalResult, formData, setPathValue, unsetPathValue, setFormIsSubmitted, setPathIsBlurred, unsetPathIsBlurred, setFormData, setRules, setFormDataAndRules, resetForm, getValue, getError, forceRunAllValidations } = useValidatableForm({ @@ -7,4 +7,4 @@ hideBeforeSubmit, showAfterBlur, focusToErrorAfterSubmit, -});
Hook Parameters
rules (array) See rules API
Array of validation rules to be run on current form.
initialFormData (object)
Initial form data to set default values of current form.
hideBeforeSubmit (boolean) See Example
Flag to hide validation errors before setFormIsSubmitted function is called.
showAfterBlur (boolean) See Example
Flag to hide validation errors before setPathIsBlurred function is called for any path.
focusToErrorAfterSubmit (boolean) See Example
Flag to automatically focus to first HTML element with validation error after setFormIsSubmitted function is called.
elementFocusHandler (function) See Example
Function that accepts the first "elementId" of current validation errors as parameter that is used to customly manage DOM after submit.
Return Values
isValid (boolean)
Always returns the form's combined validation result according to current formData and rules.
validationError (object) See Example
Returns the validation result info of each rule with each path according to current formData and rules. Some validation results can be hide before submit or before blur.
validationErrorOriginalResult (object) See Example
Returns the validation result info of each rule with each path according to current formData and rules. (is not hidden before submit or before blur).
formData (object) See Example
Returns current formData.
formIsSubmitted (boolean) See Example
Returns current formIsSubmitted info.
blurredPathList (array) See Example
Returns current blurredPathList info.
setPathValue(path, value) See Path API - See Example
Function to update given path of formData with given value.
unsetPathValue(path, value) See Path API - See Example
Function to remove value and key for given path of formData.
setFormIsSubmitted() See Example
Function to set form is submitted info true and show all current validation results if hideBeforeSubmit parameter is set true.
setPathIsBlurred(path) See Path API
Function to set element of path is blurred info true and unhide its current validation result if showAfterBlur parameter is set true.
unsetPathIsBlurred(path) See Path API - See Example
Function to unset element of path is blurred info and hide its current validation result if showAfterBlur parameter is set true.
setFormData(newFormData, pathToBeRun) See Example
Function to update whole formData and run validation rules of given pathToBeRun array.
setRules(newRules) See Example
Function to update rules and run all validations according to these rules.
setFormDataAndRules(newFormData, newRules) See Example
Function to update whole formData and rules simultaneously and run all validations according to these formData and rules.
resetForm() See Example
Function to reset form submitted info and elements blurred info.
isPathValid(path) See Example
Function to get if path can be interpreted as valid.
getValue(path)
Function to get value of given path on formData object.
getError(path)
Function to get validation error of given path on validationError object.
forceRunAllValidations()
Function to run all validations according to current rules.
\ No newline at end of file +});
Hook Parameters
rules (array) See rules API
Array of validation rules to be run on current form.
initialFormData (object)
Initial form data to set default values of current form.
hideBeforeSubmit (boolean) See Example
Flag to hide validation errors before setFormIsSubmitted function is called.
showAfterBlur (boolean) See Example
Flag to hide validation errors before setPathIsBlurred function is called for any path.
focusToErrorAfterSubmit (boolean) See Example
Flag to automatically focus to first HTML element with validation error after setFormIsSubmitted function is called.
elementFocusHandler (function) See Example
Function that accepts the first "elementId" of current validation errors as parameter that is used to customly manage DOM after submit.
Return Values
isValid (boolean)
Always returns the form's combined validation result according to current formData and rules.
validationError (object) See Example
Returns the validation result info of each rule with each path according to current formData and rules. Some validation results can be hide before submit or before blur.
validationErrorOriginalResult (object) See Example
Returns the validation result info of each rule with each path according to current formData and rules. (is not hidden before submit or before blur).
formData (object) See Example
Returns current formData.
formIsSubmitted (boolean) See Example
Returns current formIsSubmitted info.
blurredPathList (array) See Example
Returns current blurredPathList info.
setPathValue(path, value) See Path API - See Example
Function to update given path of formData with given value.
unsetPathValue(path, value) See Path API - See Example
Function to remove value and key for given path of formData.
setFormIsSubmitted() See Example
Function to set form is submitted info true and show all current validation results if hideBeforeSubmit parameter is set true.
setPathIsBlurred(path) See Path API
Function to set element of path is blurred info true and unhide its current validation result if showAfterBlur parameter is set true.
unsetPathIsBlurred(path) See Path API - See Example
Function to unset element of path is blurred info and hide its current validation result if showAfterBlur parameter is set true.
setFormData(newFormData, pathToBeRun) See Example
Function to update whole formData and run validation rules of given pathToBeRun array.
setRules(newRules) See Example
Function to update rules and run all validations according to these rules.
setFormDataAndRules(newFormData, newRules) See Example
Function to update whole formData and rules simultaneously and run all validations according to these formData and rules.
resetForm() See Example
Function to reset form submitted info and elements blurred info.
isPathValid(path) See Example
Function to get if path can be interpreted as valid.
getValue(path)
Function to get value of given path on formData object.
getError(path)
Function to get validation error of given path on validationError object.
forceRunAllValidations()
Function to run all validations according to current rules.
\ No newline at end of file diff --git a/rules/custom-on-hook.html b/rules/custom-on-hook.html index 5617f80..9654930 100644 --- a/rules/custom-on-hook.html +++ b/rules/custom-on-hook.html @@ -1,4 +1,4 @@ -customly defined on hook
obss
logo
github_iconnpm_iconVersion: 5.0.2
customly defined on hookView on GitHub

Custom rules can be defined as a function and given as a rule definition.

Validation Result: validationresultvalid
[ +customly defined on hook
obss
logo
github_iconnpm_iconVersion: 5.0.2
customly defined on hookView on GitHub

Custom rules can be defined as a function and given as a rule definition.

Validation Result: validationresultvalid
[ { "path": "val", "ruleSet": [ @@ -8,4 +8,4 @@ } ] } -]
\ No newline at end of file +]
\ No newline at end of file diff --git a/rules/custom-on-provider.html b/rules/custom-on-provider.html index 2ac770f..9f9f3db 100644 --- a/rules/custom-on-provider.html +++ b/rules/custom-on-provider.html @@ -1,4 +1,4 @@ -custom on provider
obss
logo
github_iconnpm_iconVersion: 5.0.2
custom on providerView on GitHubView on GitHub

Custom rules can be defined as a function and passed to ReactValidatableFormProvider with a unique name and can be used anywhere in the app.

Validation Result: validationresultvalid
[ +custom on provider
obss
logo
github_iconnpm_iconVersion: 5.0.2
custom on providerView on GitHubView on GitHub

Custom rules can be defined as a function and passed to ReactValidatableFormProvider with a unique name and can be used anywhere in the app.

Validation Result: validationresultvalid
[ { "path": "val", "ruleSet": [ @@ -32,4 +32,4 @@ } ] } -]
\ No newline at end of file +]
\ No newline at end of file diff --git a/rules/date.html b/rules/date.html index c5677b9..c6e4dd6 100644 --- a/rules/date.html +++ b/rules/date.html @@ -1,15 +1,15 @@ -date
obss
logo
github_iconnpm_iconVersion: 5.0.2
dateView on GitHub

date rule checks if the given value is a valid date. If withTime parameter is set, it compares hours and minutes, too. equalTo, lessThan, lessThanOrEqualTo, greaterThan, greaterThanOrEqualTo, notEqualTo parameters are used to make comparisons with given comparison values.

Validation Result: validationresultvalid
[ +date
obss
logo
github_iconnpm_iconVersion: 5.0.2
dateView on GitHub

date rule checks if the given value is a valid date. If withTime parameter is set, it compares hours and minutes, too. equalTo, lessThan, lessThanOrEqualTo, greaterThan, greaterThanOrEqualTo, notEqualTo parameters are used to make comparisons with given comparison values.

Validation Result: validationresultvalid
[ { "path": "val", "ruleSet": [ "required", { "rule": "date", - "equalTo": "2024-02-11T16:46:31.077Z" + "equalTo": "2024-02-11T17:03:03.948Z" } ], "dependantPaths": [ "comparisonValue" ] } -]
\ No newline at end of file +]
\ No newline at end of file diff --git a/rules/email.html b/rules/email.html index 24077a7..3d619b7 100644 --- a/rules/email.html +++ b/rules/email.html @@ -1,4 +1,4 @@ -email
obss
logo
github_iconnpm_iconVersion: 5.0.2
emailView on GitHub

email rule checks if the given value is a valid email.

Validation Result: validationresultvalid
[ +email
obss
logo
github_iconnpm_iconVersion: 5.0.2
emailView on GitHub

email rule checks if the given value is a valid email.

Validation Result: validationresultvalid
[ { "path": "val", "ruleSet": [ @@ -10,4 +10,4 @@ } ] } -]
\ No newline at end of file +]
\ No newline at end of file diff --git a/rules/equality.html b/rules/equality.html index f9cd18e..0bb718a 100644 --- a/rules/equality.html +++ b/rules/equality.html @@ -1,4 +1,4 @@ -equality
obss
logo
github_iconnpm_iconVersion: 5.0.2
equalityView on GitHub

equality rule checks if the given value is equal to comparison value.

['North America', 'Africa', 'Europe']

North America
Africa
Europe

['North America', 'Africa', 'Europe']

North America
Africa
Europe
Validation Result: validationresultvalid
[ +equality
obss
logo
github_iconnpm_iconVersion: 5.0.2
equalityView on GitHub

equality rule checks if the given value is equal to comparison value.

['North America', 'Africa', 'Europe']

North America
Africa
Europe

['North America', 'Africa', 'Europe']

North America
Africa
Europe
Validation Result: validationresultvalid
[ { "path": "val", "ruleSet": [ @@ -106,4 +106,4 @@ "comparisonValueIsNoneOf" ] } -]
\ No newline at end of file +]
\ No newline at end of file diff --git a/rules/iban.html b/rules/iban.html index d2b803d..50ab0ec 100644 --- a/rules/iban.html +++ b/rules/iban.html @@ -1,4 +1,4 @@ -iban
obss
logo
github_iconnpm_iconVersion: 5.0.2
ibanView on GitHub

iban rule checks if the given value is a valid IBAN.

Validation Result: validationresultvalid
[ +iban
obss
logo
github_iconnpm_iconVersion: 5.0.2
ibanView on GitHub

iban rule checks if the given value is a valid IBAN.

Validation Result: validationresultvalid
[ { "path": "val", "ruleSet": [ @@ -10,4 +10,4 @@ } ] } -]
\ No newline at end of file +]
\ No newline at end of file diff --git a/rules/includes.html b/rules/includes.html index 35b3cf1..0e2c85e 100644 --- a/rules/includes.html +++ b/rules/includes.html @@ -1,4 +1,4 @@ -includes
obss
logo
github_iconnpm_iconVersion: 5.0.2
includesView on GitHub

includes rule checks if the given value includes comparison value.

Validation Result: validationresultvalid
[ +includes
obss
logo
github_iconnpm_iconVersion: 5.0.2
includesView on GitHub

includes rule checks if the given value includes comparison value.

Validation Result: validationresultvalid
[ { "path": "val", "ruleSet": [ @@ -29,4 +29,4 @@ "comparisonValue" ] } -]
\ No newline at end of file +]
\ No newline at end of file diff --git a/rules/length.html b/rules/length.html index 3a5ee87..ec450d6 100644 --- a/rules/length.html +++ b/rules/length.html @@ -1,4 +1,4 @@ -length
obss
logo
github_iconnpm_iconVersion: 5.0.2
lengthView on GitHub

length rule checks the length of a string. equalTo, lessThan, lessThanOrEqualTo, greaterThan, greaterThanOrEqualTo, notEqualTo parameters are used to make comparisons with given comparison values.

Validation Result: validationresultvalid
[ +length
obss
logo
github_iconnpm_iconVersion: 5.0.2
lengthView on GitHub

length rule checks the length of a string. equalTo, lessThan, lessThanOrEqualTo, greaterThan, greaterThanOrEqualTo, notEqualTo parameters are used to make comparisons with given comparison values.

Validation Result: validationresultvalid
[ { "path": "val", "ruleSet": [ @@ -12,4 +12,4 @@ "comparisonValue" ] } -]
\ No newline at end of file +]
\ No newline at end of file diff --git a/rules/list-size.html b/rules/list-size.html index 500532b..dc8048f 100644 --- a/rules/list-size.html +++ b/rules/list-size.html @@ -1,4 +1,4 @@ -listSize
obss
logo
github_iconnpm_iconVersion: 5.0.2
listSizeView on GitHub

listSize rule checks the length of an array. equalTo, lessThan, lessThanOrEqualTo, greaterThan, greaterThanOrEqualTo, notEqualTo parameters are used to make comparisons with given comparison values.

Asia
Europe

Validation Result: validationresultvalid
[ +listSize
obss
logo
github_iconnpm_iconVersion: 5.0.2
listSizeView on GitHub

listSize rule checks the length of an array. equalTo, lessThan, lessThanOrEqualTo, greaterThan, greaterThanOrEqualTo, notEqualTo parameters are used to make comparisons with given comparison values.

Asia
Europe

Validation Result: validationresultvalid
[ { "path": "val", "ruleSet": [ @@ -12,4 +12,4 @@ "comparisonValue" ] } -]
\ No newline at end of file +]
\ No newline at end of file diff --git a/rules/number.html b/rules/number.html index e6ef872..ff0a78b 100644 --- a/rules/number.html +++ b/rules/number.html @@ -1,4 +1,4 @@ -number
obss
logo
github_iconnpm_iconVersion: 5.0.2
numberView on GitHub

number rule checks if the given value is a valid number. If onlyIntegers parameter is set, it also checks if given value is an integer. equalTo, lessThan, lessThanOrEqualTo, greaterThan, greaterThanOrEqualTo, notEqualTo parameters are used to make comparisons with given comparison values.

Validation Result: validationresultvalid
[ +number
obss
logo
github_iconnpm_iconVersion: 5.0.2
numberView on GitHub

number rule checks if the given value is a valid number. If onlyIntegers parameter is set, it also checks if given value is an integer. equalTo, lessThan, lessThanOrEqualTo, greaterThan, greaterThanOrEqualTo, notEqualTo parameters are used to make comparisons with given comparison values.

Validation Result: validationresultvalid
[ { "path": "val", "ruleSet": [ @@ -12,4 +12,4 @@ "comparisonValue" ] } -]
\ No newline at end of file +]
\ No newline at end of file diff --git a/rules/regex.html b/rules/regex.html index 2fdce29..5f7bd5a 100644 --- a/rules/regex.html +++ b/rules/regex.html @@ -1,4 +1,4 @@ -regex
obss
logo
github_iconnpm_iconVersion: 5.0.2
regexView on GitHub

regex rule checks if the given value is a valid string according to given regex.

regex: /ab+c/

regex: /\D\d\D/
Validation Result: validationresultvalid
[ +regex
obss
logo
github_iconnpm_iconVersion: 5.0.2
regexView on GitHub

regex rule checks if the given value is a valid string according to given regex.

regex: /ab+c/

regex: /\D\d\D/
Validation Result: validationresultvalid
[ { "path": "val", "ruleSet": [ @@ -23,4 +23,4 @@ } ] } -]
\ No newline at end of file +]
\ No newline at end of file diff --git a/rules/required.html b/rules/required.html index 088645e..acee6cb 100644 --- a/rules/required.html +++ b/rules/required.html @@ -1,4 +1,4 @@ -required
obss
logo
github_iconnpm_iconVersion: 5.0.2
requiredView on GitHub

required rule checks if the given value is undefined, null, empty string or empty array.

Validation Result: validationresultvalid
[ +required
obss
logo
github_iconnpm_iconVersion: 5.0.2
requiredView on GitHub

required rule checks if the given value is undefined, null, empty string or empty array.

Validation Result: validationresultvalid
[ { "path": "val", "ruleSet": [ @@ -7,4 +7,4 @@ } ] } -]
\ No newline at end of file +]
\ No newline at end of file diff --git a/rules/unique.html b/rules/unique.html index 4c61957..dbc9625 100644 --- a/rules/unique.html +++ b/rules/unique.html @@ -1,4 +1,4 @@ -Unique
obss
logo
github_iconnpm_iconVersion: 5.0.2
UniqueView on GitHub

unique rule checks if non-unique values exist on a listPath.

Validation Result: validationresultvalid
[ +Unique
obss
logo
github_iconnpm_iconVersion: 5.0.2
UniqueView on GitHub

unique rule checks if non-unique values exist on a listPath.

Validation Result: validationresultvalid
[ { "listPath": "listChild", "ruleSet": [ @@ -22,4 +22,4 @@ } ] } -]
\ No newline at end of file +]
\ No newline at end of file diff --git a/rules/url.html b/rules/url.html index b930573..a8d4400 100644 --- a/rules/url.html +++ b/rules/url.html @@ -1,4 +1,4 @@ -url
obss
logo
github_iconnpm_iconVersion: 5.0.2
urlView on GitHub

url rule checks if the given value is a valid url.

Validation Result: validationresultvalid
[ +url
obss
logo
github_iconnpm_iconVersion: 5.0.2
urlView on GitHub

url rule checks if the given value is a valid url.

Validation Result: validationresultvalid
[ { "path": "val", "ruleSet": [ @@ -10,4 +10,4 @@ } ] } -]
\ No newline at end of file +]
\ No newline at end of file