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
Copy file name to clipboardExpand all lines: readme.md
+51Lines changed: 51 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,9 +11,60 @@ Apache License, Version 2.0.
11
11
-http://wiki.coldbox.org/wiki/Validation.cfm
12
12
13
13
##SYSTEM REQUIREMENTS
14
+
- Lucee 4.5+
14
15
- Railo 4+
15
16
- ColdFusion 9+
16
17
18
+
INSTRUCTIONS
19
+
============
20
+
21
+
Just drop into your **modules** folder or use the box-cli to install
22
+
23
+
`box install cbvalidation`
24
+
25
+
The module will register several objects into WireBox using the `@cbvalidation` namespace. The validation manager is registered as `ValidationManager@cbvalidation`
26
+
27
+
## Mixins
28
+
The module will also register two methods in your handlers/interceptors/layouts/views
29
+
30
+
```js
31
+
/**
32
+
* Validate an object or structure according to the constraints rules.
33
+
* @target An object or structure to validate
34
+
* @fields The fields to validate on the target. By default, it validates on all fields
35
+
* @constraints A structure of constraint rules or the name of the shared constraint rules to use for validation
36
+
* @locale The i18n locale to use for validation messages
37
+
* @excludeFields The fields to exclude in the validation
0 commit comments