File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ empty list will be returned. A validation error will have two properties:
15
15
*/
16
16
require . def || ( require . def = function ( deps , factory ) { module . exports = factory ( ) ; } ) ;
17
17
require . def ( [ ] , function ( ) {
18
-
18
+ var exports = validate ;
19
19
// setup primitive classes to be JSON Schema types
20
20
String . type = "string" ;
21
21
Boolean . type = "boolean" ;
@@ -24,8 +24,8 @@ exports.Integer = {type:"integer"};
24
24
Object . type = "object" ;
25
25
Array . type = "array" ;
26
26
Date . type = "date" ;
27
- var exports = validate ;
28
- exports . validate = function validate ( /*Any*/ instance , /*Object*/ schema ) {
27
+ exports . validate = validate ;
28
+ function validate ( /*Any*/ instance , /*Object*/ schema ) {
29
29
// Summary:
30
30
// To use the validator call JSONSchema.validate with an instance object and an optional schema object.
31
31
// If a schema is provided, it will be used to validate. If the instance object refers to a schema (self-validating),
You can’t perform that action at this time.
0 commit comments