lib/vocabularies/validation/uniqueItems.ts
Function code
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
code(cxt: KeywordCxt) {
const {gen, data, $data, schema, parentSchema, schemaCode, it} = cxt
if (!$data && !schema) return
const valid = gen.let("valid")
const itemTypes = parentSchema.items ? getSchemaTypes(parentSchema.items) : []