Skip to content

Commit

Permalink
OpenAPI: Fix the OrgKey mixed type (#249)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
fflorent committed Jul 10, 2023
1 parent c807cf8 commit 557c5cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/grist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 557c5cd

Please sign in to comment.