require.def("preview/jsonSchema",[],function(){return{validate:function(i,l){return this._validate(i,l,false)},checkPropertyChange:function(i,l,m){return this._validate(i,l,m||"property")},_validate:function(i,l,m){function j(b,a,f,d){function c(g){e.push({property:f,message:g})}function h(g,k){if(g){if(typeof g=="string"&&g!="any"&&(g=="null"?k!==null:typeof k!=g)&&!(k instanceof Array&&g=="array")&&!(g=="integer"&&k%1===0))return[{property:f,message:typeof k+" value found, but a "+g+" is required"}]; if(g instanceof Array){for(var o=[],p=0;pa.maxItems&&c("There must be a maximum of "+a.maxItems+" in the array")}else a.properties&&e.concat(s(b,a.properties,f,a.additionalProperties));a.pattern&&typeof b=="string"&&!b.match(a.pattern)&&c("does not match the regex pattern "+a.pattern);a.maxLength&&typeof b=="string"&&b.length>a.maxLength&&c("may only be "+a.maxLength+" characters long");a.minLength&&typeof b=="string"&&b.lengthb&&c("must have a minimum value of "+a.minimum);typeof a.maximum!==undefined&&typeof b==typeof a.maximum&&a.maximum