(data, {instancePath="", parentData, parentDataProperty, rootData=data}={})
| 71 | const func0 = require("ajv/dist/runtime/equal").default; |
| 72 | |
| 73 | function validate10(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){ |
| 74 | /*# sourceURL="http://json-schema.org/draft-07/schema#" */; |
| 75 | let vErrors = null; |
| 76 | let errors = 0; |
| 77 | if((!(data && typeof data == "object" && !Array.isArray(data))) && (typeof data !== "boolean")){ |
| 78 | validate10.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: schema11.type},message:"must be object,boolean"}]; |
| 79 | return false; |
| 80 | } |
| 81 | if(errors === 0){ |
| 82 | if(data && typeof data == "object" && !Array.isArray(data)){ |
| 83 | if(data.$id !== undefined){ |
| 84 | let data0 = data.$id; |
| 85 | const _errs1 = errors; |
| 86 | if(errors === _errs1){ |
| 87 | if(errors === _errs1){ |
| 88 | if(typeof data0 === "string"){ |
| 89 | if(!(formats0.test(data0))){ |
| 90 | validate10.errors = [{instancePath:instancePath+"/$id",schemaPath:"#/properties/%24id/format",keyword:"format",params:{format: "uri-reference"},message:"must match format \""+"uri-reference"+"\""}]; |
| 91 | return false; |
| 92 | } |
| 93 | } |
| 94 | else { |
| 95 | validate10.errors = [{instancePath:instancePath+"/$id",schemaPath:"#/properties/%24id/type",keyword:"type",params:{type: "string"},message:"must be string"}]; |
| 96 | return false; |
| 97 | } |
| 98 | } |
| 99 | } |
| 100 | var valid0 = _errs1 === errors; |
| 101 | } |
| 102 | else { |
| 103 | var valid0 = true; |
| 104 | } |
| 105 | if(valid0){ |
| 106 | if(data.$schema !== undefined){ |
| 107 | let data1 = data.$schema; |
| 108 | const _errs3 = errors; |
| 109 | if(errors === _errs3){ |
| 110 | if(errors === _errs3){ |
| 111 | if(typeof data1 === "string"){ |
| 112 | if(!(formats2(data1))){ |
| 113 | validate10.errors = [{instancePath:instancePath+"/$schema",schemaPath:"#/properties/%24schema/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""}]; |
| 114 | return false; |
| 115 | } |
| 116 | } |
| 117 | else { |
| 118 | validate10.errors = [{instancePath:instancePath+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type: "string"},message:"must be string"}]; |
| 119 | return false; |
| 120 | } |
| 121 | } |
| 122 | } |
| 123 | var valid0 = _errs3 === errors; |
| 124 | } |
| 125 | else { |
| 126 | var valid0 = true; |
| 127 | } |
| 128 | if(valid0){ |
| 129 | if(data.$ref !== undefined){ |
| 130 | let data2 = data.$ref; |
nothing calls this directly
no test coverage detected
searching dependent graphs…