From d3b36529846a7f3ec5f8baceca74da57a03a4749 Mon Sep 17 00:00:00 2001 From: Mateusz Kwasniewski Date: Mon, 3 Jul 2023 13:48:46 +0200 Subject: [PATCH] docs: not on latest unleash with openapi enabeld (#4024) --- website/docs/how-to/how-to-enable-openapi.mdx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/website/docs/how-to/how-to-enable-openapi.mdx b/website/docs/how-to/how-to-enable-openapi.mdx index ab53b31b50..79d316926f 100644 --- a/website/docs/how-to/how-to-enable-openapi.mdx +++ b/website/docs/how-to/how-to-enable-openapi.mdx @@ -9,6 +9,7 @@ import TabItem from '@theme/TabItem'; :::info Availability OpenAPI schemas were introduced in v4.13.0 of Unleash and v0.10.0 of the Unleash proxy. +Since v5.2.0 Unleash has OpenAPI enabled by default. ::: @@ -34,6 +35,8 @@ Similarly, if you're running the Unleash proxy locally at `http://localhost:3000 The OpenAPI spec and the Swagger UI can be turned on either via environment variables or via configuration options. Configuration options take precedence over environment variables. +If you are using Unleash v5.2.0, OpenAPI is enabled by default. You still need to enable it for Unleash proxy. + ### Enable OpenAPI via environment variables To turn on OpenAPI via environment variables, set the `ENABLE_OAS` to `true` in the environment you're running the server in.