From 4100d4c19ff0a31d53d128804f30858e26c7c491 Mon Sep 17 00:00:00 2001 From: orientor Date: Sat, 18 Apr 2020 16:16:15 +0530 Subject: [PATCH] openapi: Pass validation of zulip.yaml on openapi-generator. The openapi-generator has an additional set of requirements for validation. Make changes in zulip.yaml accordingly. --- zerver/openapi/zulip.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yaml index d973255fad..22fb56e0a3 100644 --- a/zerver/openapi/zulip.yaml +++ b/zerver/openapi/zulip.yaml @@ -133,6 +133,8 @@ paths: set) of events with IDs newer than `last_event_id`. Event IDs are guaranteed to be increasing, but they are not guaranteed to be consecutive. + items: + type: object - example: { "events": [ @@ -1182,6 +1184,8 @@ paths: description: | A list of `user` objects, each containing details about a user in the organization. + items: + type: object - example: { "msg": "", @@ -2132,7 +2136,6 @@ paths: type: array items: type: string - default: example: ['ZOE@zulip.com'] responses: '200': @@ -2564,7 +2567,7 @@ paths: anyOf: - type: string - type: integer - default: narrow=[] + default: [] example: ['stream', 'Denmark'] responses: '200': @@ -2627,6 +2630,8 @@ paths: List of dictionaries describing which external authentication methods are enabled and their parameters - most importantly the login url, display_name and display_icon. + items: + type: object zulip_version: type: string description: | @@ -3742,5 +3747,4 @@ components: type: array items: type: string - default: null required: false