From a1aefa41237ca67f88adb7623131ba950a964589 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Sat, 25 Feb 2017 23:44:19 +0200 Subject: [PATCH] docs: docs for `x-servers` --- README.md | 1 + docs/redoc-vendor-extensions.md | 3 +++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index 449fabc4..d4094f18 100644 --- a/README.md +++ b/README.md @@ -125,6 +125,7 @@ ReDoc makes use of the following [vendor extensions](http://swagger.io/specifica * [`x-nullable`](docs/redoc-vendor-extensions.md#nullable) - mark schema param as a nullable * [`x-displayName`](docs/redoc-vendor-extensions.md#x-displayname) - specify human-friendly names for the menu categories * [`x-tagGroups`](docs/redoc-vendor-extensions.md#x-tagGroups) - group tags by categories in the side menu +* [`x-servers`](docs/redoc-vendor-extensions.md#x-servers) - ability to specify different servers for API (backported from OpenAPI 3.0) ### `` tag attributes * `spec-url` - relative or absolute url to your spec file; diff --git a/docs/redoc-vendor-extensions.md b/docs/redoc-vendor-extensions.md index 304795e4..955741ef 100644 --- a/docs/redoc-vendor-extensions.md +++ b/docs/redoc-vendor-extensions.md @@ -3,6 +3,9 @@ ReDoc makes use of the following [vendor extensions](http://swagger.io/specifica ### Swagger Object vendor extensions Extend OpenAPI root [Swagger Object](http://swagger.io/specification/#swaggerObject) +#### x-servers +Backported from OpenAPI 3.0 [`servers`](https://github.com/OAI/OpenAPI-Specification/blob/OpenAPI.next/versions/3.0.md#server-object). Currently doesn't support templates. + #### x-tagGroups | Field Name | Type | Description |