From 557c5cd0db86dc68317a87a0375f0a2fb0f5dc8c Mon Sep 17 00:00:00 2001 From: Florent Date: Mon, 10 Jul 2023 13:33:18 +0200 Subject: [PATCH] OpenAPI: Fix the OrgKey mixed type (#249) As per https://swagger.io/docs/specification/data-models/data-types/#mixed-type The mixed types can be described using the combination of `oneOf` and a list of `type`s --- api/grist.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/grist.yml b/api/grist.yml index 957dc1db1..2be6d0d9e 100644 --- a/api/grist.yml +++ b/api/grist.yml @@ -928,8 +928,8 @@ components: schemas: OrgKey: oneOf: - - integer - - string + - type: integer + - type: string description: This can be an integer id, or a string subdomain (e.g. `gristlabs`), or `current` if the org is implied by the domain in the url WorkspaceKey: type: integer