Configuration
config/openapi.php is published with php artisan vendor:publish --tag=openapi-config and documented key by key in
the file. It is read when a command runs, never when the application boots: an unknown top-level key or an invalid
value fails the command with the key, the expected value and the received one.
documents
One entry per document; the key is its name (--document=v1, {document} in the file name). The published file
declares v1. A key a document leaves out takes the default below.
3.0.0 to 3.0.4, 3.1.0 to 3.1.2, 3.2.0. Default 3.1.2.true: what the version cannot write fails the document. false: dropped with a warning. Default true.redoc: x-webhooks before 3.1, x-tagGroups before 3.2. Default none.title, version, summary (3.1), description, terms_of_service, contact (name, url, email), license
(name, identifier (3.1), url).$self (3.2). Default null.url and description. Default null.servers when empty. Default [].uri, name, domain, middleware. null or []: every route.
Default ['api/*'].[].['HEAD'].RouteFilterConfiguration::INTERNAL (up,
sanctum/csrf-cookie, telescope/*, horizon/*, livewire/*…).registration.by: doc (default), name, uri, controller, or a SummaryStrategy class; optional pattern, whose first group
is kept.by: controller (default), uri, name, or a TagStrategy class; optional pattern. Published:
/^App\\Http\\Controllers\\(.+)Controller$/.null (default), or like tags: the parent tag of each tag. GroupStrategy class accepted.by: name (default when the key is missing), action, method_path, method_name (published), or an
OperationIdStrategy class.by: all (default), last, none, querystring (3.2), or a QueryStrategy class.[].[].components.schemas referenced by $ref. Default true.output. Published: ['file' => 'openapi-{document}.json'].x-* extensions of the document root. Default [].json_api.revision with ark4ne/laravel-json-api 3.x. Default [].webhooks, key by key Since 1.3. ['paths' => []]: no payload webhook found by
scanning.webhooks Since 1.3
Where the payload webhooks are found: the JsonResource classes marked #[Webhook]. A document overrides these keys
in its own webhooks. See
Webhooks & callbacks.
Webhook are read. Published:
[app_path()]. Without the key: [].JsonResource marked #[Webhook] fails the command.
Default [].article.*). Default []: every webhook.include. Default [].servers
The default servers of every document. Default: APP_URL, described by APP_NAME.
https://{env}.example.com.default, enum, description.output
null: the default disk.openapi.{document} and {locale} are replaced. Default {document}.json.yaml needs symfony/yaml. Default json.sampling
create() inside a transaction rolled back at the end; false: make() only. Default true.['mariadb', 'mysql', 'pgsql', 'sqlite', 'sqlsrv'].2.1.example. Default true.date_formats
PHP date format → OpenAPI format (date, date-time), for date_format: and the sampled values. Default:
Y-m-d → date, Y-m-d H:i:s → date-time, DateTimeInterface::ATOM → date-time.
middlewares
Middleware name or class → list of MiddlewareMapper classes, replacing the built-in mappers of that middleware.
Default []. See Middleware mappers.
extensions
Classes added to the registries, built through the container. See Extending.
OperationExtractor classes.RequestExtractor classes.RuleMapper classes.ResponseExtractor classes.Sampler classes.Pass classes.integrations
ark4ne/laravel-json-api. Default false.exceptions
@throws of the actions. Default true.['status' => …, 'description' => …]. The exception or its closest parent wins.
Default [].languages
list<string>: one document per locale; summaries, descriptions and tags may be translation keys. Default []: one
document in the application locale. See Translations.