(name: string, filter: (i: any) => boolean)
| 554 | out.allOf ??= [] |
| 555 | |
| 556 | const handle = (name: string, filter: (i: any) => boolean) => { |
| 557 | if (name in jsonSchema && name in from) { |
| 558 | out.allOf.unshift({ [name]: from[name] }) |
| 559 | out.allOf = out.allOf.filter(filter) |
| 560 | } |
| 561 | } |
| 562 | |
| 563 | handle("minLength", (i) => i.minLength > jsonSchema.minLength) |
| 564 | handle("maxLength", (i) => i.maxLength < jsonSchema.maxLength) |
no outgoing calls
no test coverage detected
searching dependent graphs…