epoberezkin/ajv

View on GitHub
lib/vocabularies/validation/uniqueItems.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function code has 45 lines of code (exceeds 25 allowed). Consider refactoring.
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) : []
Severity: Minor
Found in lib/vocabularies/validation/uniqueItems.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status