diff --git a/dev.yml b/dev.yml index c6d48c78ab7cba45d5dfc7c874b1eba5f1f14506..92bbfa234631502dda5f156e1b4b933f19d84ed1 100644 --- a/dev.yml +++ b/dev.yml @@ -154,7 +154,7 @@ services: - "8001:8001" api-docs: - image: swaggerapi/swagger-ui:v3.26.0 + image: swaggerapi/swagger-ui:v3.37.2 environment: - "API_URL=/swagger.yml" ports: diff --git a/docs/build_swagger.sh b/docs/build_swagger.sh index 8c0d32e55315f2bf52c39d1c0b9eb7afc0313ce8..a33183e2bcb48002e712b21a3ba462e92a5dc40e 100755 --- a/docs/build_swagger.sh +++ b/docs/build_swagger.sh @@ -1,6 +1,6 @@ #!/bin/bash -eux -SWAGGER_VERSION="3.13.6" +SWAGGER_VERSION="3.37.2" TARGET_PATH=${TARGET_PATH-"swagger"} rm -rf $TARGET_PATH /tmp/swagger-ui git clone --branch="v$SWAGGER_VERSION" --depth=1 "https://github.com/swagger-api/swagger-ui.git" /tmp/swagger-ui diff --git a/docs/swagger.yml b/docs/swagger.yml index 1272b615f16d77aec62f10f028783b0342d72fc7..5138e61aa642309d811280c2f3a3994ab7214543 100644 --- a/docs/swagger.yml +++ b/docs/swagger.yml @@ -1,4 +1,4 @@ -openapi: "3.0.2" +openapi: "3.0.3" info: description: | Interactive documentation for [Funkwhale](https://funkwhale.audio) API. @@ -140,7 +140,6 @@ components: description: This API uses OAuth 2 with the Authorization Code flow. You can register an app using the /oauth/apps/ endpoint. flows: authorizationCode: - # Swagger doesn't support relative URLs yet (cf https://github.com/swagger-api/swagger-ui/pull/5244) authorizationUrl: /authorize tokenUrl: /api/v1/oauth/token/ refreshUrl: /api/v1/oauth/token/