---
title: "DefectSearch"
url: "https://developers.vzconnect.com/apis/fleet-inspections-api/versions/e4689b0c-c26d-40d6-b023-5303083c4a3f/schemas/DefectSearch"
---

> Full API specification: https://developers.vzconnect.com/apis/fleet-inspections-api/versions/e4689b0c-c26d-40d6-b023-5303083c4a3f.md

# DefectSearch

Schema for searching defects based on defect IDs.

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Fleet Inspections API
  version: "1.0"
servers:
  - url: https://api.us.vzconnect.com
components:
  schemas:
    DefectSearch:
      title: DefectSearch
      required:
        - conditions
        - fields
      type: object
      properties:
        conditions:
          maxItems: 100
          minItems: 1
          type: array
          description: Group of conditions to filter by the resource representation.
          items:
            required:
              - field
              - operator
              - values
            type: object
            properties:
              operator:
                type: string
                description: Operator to use to compare between property values and a defined
                  set of values.
                enum:
                  - IN
              field:
                maxLength: 120
                minLength: 1
                pattern: ^(defectId)$
                type: string
                description: Name of the property to be evaluated.
              values:
                maxItems: 100
                minItems: 1
                type: array
                description: Values to evaluate.
                items:
                  maxLength: 120
                  minLength: 1
                  pattern: ^[^\n]*$
                  type: string
                  description: Value to evaluate.
        fields:
          maxItems: 8
          minItems: 1
          type: array
          description: Resource properties to return as resource representations. Returns
            only provided properties of the resource representation.
          items:
            maxLength: 120
            minLength: 1
            pattern: ^(defectId|status|severity)$
            type: string
            description: Field or property name to be returned in the resource
              representation.
      additionalProperties: false
      description: Schema for searching defects based on defect IDs.
```
