# `api.serve_openapi_invalid`

API serve_openapi is not true or false.

Area 7, [HTTP](../topics/http.md); not declinable; the next step is usually the agent's.

An API serves its OpenAPI document unless its entry turns it off with
`false`:

```jadpo
application {
    apis: {
        admin: {
            prefix: /admin
            serve_openapi: "no"
        }
    }
}
```

```text
error: `"no"` isn't `true` or `false`
 --> app.jadpo:5:28
  |
5 |             serve_openapi: "no"
  |                            ^^^^ not a `Bool`
  reason: `serve_openapi:` says whether the API serves its OpenAPI document at `<prefix>/openapi.json`: `false` turns it off, and `true`, the default, can be left out.
  next: Write `serve_openapi: false`, or leave `serve_openapi:` out (agent)
  rule: api.serve_openapi_invalid
  help: https://jadpo.dev/docs/errors/api.serve_openapi_invalid

check failed: 1 error, 1 file
```
