(group: RuleGroup)
| 235 | }) |
| 236 | |
| 237 | function groupKeywords(group: RuleGroup): void { |
| 238 | if (!shouldUseGroup(schema, group)) return |
| 239 | if (group.type) { |
| 240 | gen.if(checkDataType(group.type, data, opts.strictNumbers)) |
| 241 | iterateKeywords(it, group) |
| 242 | if (types.length === 1 && types[0] === group.type && typeErrors) { |
| 243 | gen.else() |
| 244 | reportTypeError(it) |
| 245 | } |
| 246 | gen.endIf() |
| 247 | } else { |
| 248 | iterateKeywords(it, group) |
| 249 | } |
| 250 | // TODO make it "ok" call? |
| 251 | if (!allErrors) gen.if(_`${N.errors} === ${errsCount || 0}`) |
| 252 | } |
| 253 | } |
| 254 | |
| 255 | function iterateKeywords(it: SchemaObjCxt, group: RuleGroup): void { |
no test coverage detected
searching dependent graphs…