From 043e89a1a445a2d20e30ce1427b81a2c9a46dbbc Mon Sep 17 00:00:00 2001 From: Simon Zolin Date: Mon, 22 Apr 2019 18:01:04 +0300 Subject: [PATCH] * update openapi.yaml --- openapi/openapi.yaml | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/openapi/openapi.yaml b/openapi/openapi.yaml index 5395ca99..fd8b09e6 100644 --- a/openapi/openapi.yaml +++ b/openapi/openapi.yaml @@ -1142,14 +1142,33 @@ definitions: DhcpSearchResult: type: "object" description: "Information about a DHCP server discovered in the current network" - required: - - "found" + properties: + other_server: + $ref: "#/definitions/DhcpSearchResultOtherServer" + static_ip: + $ref: "#/definitions/DhcpSearchResultStaticIP" + DhcpSearchResultOtherServer: + type: "object" properties: found: - type: "boolean" - gateway_ip: type: "string" - example: "192.168.1.1" + description: "yes|no|error" + example: "no" + error: + type: "string" + description: "Set if found=error" + example: "" + DhcpSearchResultStaticIP: + type: "object" + properties: + static: + type: "string" + description: "yes|no|error" + example: "yes" + ip: + type: "string" + description: "Set if static=no" + example: "" DnsAnswer: type: "object" description: "DNS answer section"