From 4e14ab3590328f93a8cd6e9cbe1665baf74f220b Mon Sep 17 00:00:00 2001 From: Ainar Garipov Date: Tue, 26 Jan 2021 13:45:25 +0300 Subject: [PATCH] openapi: fix example --- Makefile | 1 + openapi/openapi.yaml | 58 ++++++++++++++++++++++---------------------- 2 files changed, 30 insertions(+), 29 deletions(-) diff --git a/Makefile b/Makefile index d77eedb647b..3d8625e6ed8 100644 --- a/Makefile +++ b/Makefile @@ -83,6 +83,7 @@ go-tools: ; $(ENV) "$(SHELL)" ./scripts/make/go-tools.sh go-check: go-tools go-lint go-test openapi-lint: ; cd ./openapi/ && $(YARN) test +openapi-show: ; cd ./openapi/ && $(YARN) start # TODO(a.garipov): Remove the legacy targets once the build # infrastructure stops using them. diff --git a/openapi/openapi.yaml b/openapi/openapi.yaml index 7595af43324..366222afd74 100644 --- a/openapi/openapi.yaml +++ b/openapi/openapi.yaml @@ -2188,6 +2188,35 @@ 'description': 'Client search results.' 'items': '$ref': '#/components/schemas/ClientsFindEntry' + 'example': + - 'cli42': + 'name': 'Client 42' + 'ids': ['cli42'] + 'use_global_settings': true + 'filtering_enabled': true + 'parental_enabled': true + 'safebrowsing_enabled': true + 'safesearch_enabled': true + 'use_global_blocked_services': true + 'blocked_services': null + 'upstreams': null + 'whois_info': null + 'disallowed': false + 'disallowed_rule': '' + - '1.2.3.4': + 'name': 'Client 1-2-3-4' + 'ids': ['1.2.3.4'] + 'use_global_settings': true + 'filtering_enabled': true + 'parental_enabled': true + 'safebrowsing_enabled': true + 'safesearch_enabled': true + 'use_global_blocked_services': true + 'blocked_services': null + 'upstreams': null + 'whois_info': null + 'disallowed': false + 'disallowed_rule': '' 'AccessListResponse': '$ref': '#/components/schemas/AccessList' 'AccessSetRequest': @@ -2215,35 +2244,6 @@ 'type': 'object' 'additionalProperties': '$ref': '#/components/schemas/ClientFindSubEntry' - 'example': - 'cli42': - 'name': 'Client 42' - 'ids': ['cli42'] - 'use_global_settings': true - 'filtering_enabled': true - 'parental_enabled': true - 'safebrowsing_enabled': true - 'safesearch_enabled': true - 'use_global_blocked_services': true - 'blocked_services': null - 'upstreams': null - 'whois_info': null - 'disallowed': false - 'disallowed_rule': '' - '1.2.3.4': - 'name': 'Client 1-2-3-4' - 'ids': ['1.2.3.4'] - 'use_global_settings': true - 'filtering_enabled': true - 'parental_enabled': true - 'safebrowsing_enabled': true - 'safesearch_enabled': true - 'use_global_blocked_services': true - 'blocked_services': null - 'upstreams': null - 'whois_info': null - 'disallowed': false - 'disallowed_rule': '' 'ClientFindSubEntry': 'type': 'object' 'description': 'Client information.'