# Problems and checks

> What Dockito checks in an OpenAPI spec on every publish, what each check looks for, and how to turn one off.

Every publish runs about 30 checks: errors that make a client or a tool go wrong (a `$ref` that points nowhere, a path parameter missing, a duplicate `operationId`) and warnings that make an API harder to use (no summary, no success response, an unused schema). The names are Spectral's and Redocly's, so they read as you know them.

Checks never block a publish. People signed in see the counts in the doc bar; **Problems** lists them by rule, each with its line and a fix. A click opens Source at its line, whether Source is open or not; for someone who can't edit the spec, it opens the operation. Public links show no problems.

`dockito check openapi.yaml` runs the same checks on your machine and exits 1 on an error.

## Setting a check's level

In the spec, at its top:

```yaml
x-dockito-rules:
  operation-tags: off
  info-contact: warn
  typed-enum: error
```

Levels are `off`, `warn` and `error`. The setting travels with the file, so the app and `dockito check` agree.

## Silencing a check in one place

`x-dockito-ignore` on any object silences those checks there and under it:

```yaml
paths:
  /legacy/bookings:
    get:
      x-dockito-ignore: [operation-summary, operation-tags]
```

At the spec's top it silences them everywhere.
