OpenAPI 3.1 support in IBM API Connect
IBM® API Connect supports the OpenAPI 3.1 specification, with some limitations.
Overview
A Product can contain any combination of OpenAPI 2.0, OpenAPI 3.0, and OpenAPI 3.1 APIs. When you publish a Product that contains an OpenAPI 3.1 API, that API is validated to ensure that it is syntactically correct, and that references to configuration resources and policies resolve correctly, in the same way that OpenAPI 2.0 and OpenAPI 3.0 APIs are validated.
You can also validate OpenAPI 3.1 APIs in your local file system by using the apic
validate command provided by the developer toolkit CLI; for details, see Validating the YAML or JSON definition of an API or Product.
Gateway support
OpenAPI 3.1 support varies by gateway type:
- DataPower® API Gateway
- The DataPower API Gateway supports publishing OpenAPI 3.1 APIs with JSON Schema draft-04.
- DataPower Nano Gateway
- The DataPower Nano Gateway supports publishing OpenAPI 3.1 APIs with JSON Schema 2020-12.
- DataPower Gateway (v5 compatible)
- There is no OpenAPI 3.1 API support with the DataPower Gateway (v5 compatible).
Limitations
The limitations to the OpenAPI 3.1 support in API Connect are as follows:
- User interface limitations
-
- Limitations for APIs that are enforced by the DataPower API Gateway
- To suppress the error message for the following limitations and publish the API, set the
x-ibm-configuration.compatibility.suppress-limitation-errorsproperty totrueas shown in the following example:compatibility: suppress-limitation-errors: trueAttention: Enablingsuppress-limitation-errorsmerely disables the error messages so that the API can be published. - Limitations for DataPower Nano Gateway
- The DataPower Nano
Gateway has the following specific limitations: