changeset 2072:116994597b0e

Changed the type of the "drain" parameter to boolean.
author Yaroslav Zhuravlev <yar@nginx.com>
date Fri, 17 Nov 2017 19:58:59 +0300
parents 838c503fd2f7
children 75882a2ca9dd
files xml/en/docs/http/ngx_http_api_module.xml yaml/nginx_api.yaml
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_api_module.xml
+++ b/xml/en/docs/http/ngx_http_api_module.xml
@@ -2280,7 +2280,7 @@ Parent server ID of the resolved server.
 Hostname of the resolved server. The hostname is assigned automatically and cannot be changed.
 </tag-desc>
 <tag-name>
-<literal>drain</literal> (<literal>string</literal>)
+<literal>drain</literal> (<literal>boolean</literal>)
 </tag-name>
 <tag-desc>
 Puts the HTTP upstream server into the “draining” mode. In this mode, only requests <link url="https://nginx.org/en/docs/http/ngx_http_upstream_module.html#sticky">bound</link> to the server will be proxied to it. The parameter cannot be initially set, it can only be changed with the <literal>PATCH</literal> method.
--- a/yaml/nginx_api.yaml
+++ b/yaml/nginx_api.yaml
@@ -2389,7 +2389,7 @@ definitions:
           The hostname is assigned automatically and cannot be changed.
         readOnly: true
       drain:
-        type: string
+        type: boolean
         description: Puts the HTTP upstream server into the “draining” mode.
           In this mode, only requests
           <a href="https://nginx.org/en/docs/http/ngx_http_upstream_module.html#sticky">bound</a>