= Openapi Trait

// Start of autogenerated code - DO NOT EDIT! (badges)
[.badges]
[.badge-key]##Deprecated since##[.badge-unsupported]##2.5.0##
// End of autogenerated code - DO NOT EDIT! (badges)
// Start of autogenerated code - DO NOT EDIT! (description)
The OpenAPI DSL trait is internally used to allow creating integrations from a OpenAPI specs.

WARNING: The Openapi trait is **deprecated** and will removed in future release versions:
use Camel REST contract first instead (see Camel core documentation).


This trait is available in the following profiles: **Kubernetes, Knative, OpenShift**.

NOTE: The openapi trait is a *platform trait* and cannot be disabled by the user.

// End of autogenerated code - DO NOT EDIT! (description)
// Start of autogenerated code - DO NOT EDIT! (configuration)
== Configuration

Trait properties can be specified when running any integration with the CLI:
[source,console]
----
$ kamel run --trait openapi.[key]=[value] --trait openapi.[key2]=[value2] integration.yaml
----
The following configuration options are available:

[cols="2m,1m,5a"]
|===
|Property | Type | Description

| openapi.enabled
| bool
| Deprecated: no longer in use.

| openapi.configmaps
| []string
| The configmaps holding the spec of the OpenAPI (compatible with > 3.0 spec only).

|===

// End of autogenerated code - DO NOT EDIT! (configuration)
