From b441b19cc31b5325367df9edc4fa343741cb8a01 Mon Sep 17 00:00:00 2001 From: Alexey Rusakov Date: Wed, 8 Mar 2023 11:39:06 +0100 Subject: [PATCH] More cleanup before upgrading to OpenAPI 3.1 (#1455) * `cross_signing_key.yaml`: the parameter documentation already restricts the number of properties * `receipts.yaml`: use `maxProperties: 0` to say the object is empty (the comment is still there but is not really needed any more) Signed-off-by: Alexey Rusakov --- changelogs/client_server/newsfragments/1455.clarification | 1 + data/api/client-server/definitions/cross_signing_key.yaml | 2 ++ data/api/client-server/receipts.yaml | 3 ++- 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 changelogs/client_server/newsfragments/1455.clarification diff --git a/changelogs/client_server/newsfragments/1455.clarification b/changelogs/client_server/newsfragments/1455.clarification new file mode 100644 index 00000000..3ccb2333 --- /dev/null +++ b/changelogs/client_server/newsfragments/1455.clarification @@ -0,0 +1 @@ +Fix various typos throughout the specification. diff --git a/data/api/client-server/definitions/cross_signing_key.yaml b/data/api/client-server/definitions/cross_signing_key.yaml index cebc5ecd..d937daab 100644 --- a/data/api/client-server/definitions/cross_signing_key.yaml +++ b/data/api/client-server/definitions/cross_signing_key.yaml @@ -35,6 +35,8 @@ properties: The public key. The object must have exactly one property, whose name is in the form `:`, and whose value is the unpadded base64 public key. + minProperties: 1 + maxProperties: 1 example: "ed25519:alice+base64+public+key": "alice+base64+public+key" signatures: diff --git a/data/api/client-server/receipts.yaml b/data/api/client-server/receipts.yaml index 27825001..0b8d4593 100644 --- a/data/api/client-server/receipts.yaml +++ b/data/api/client-server/receipts.yaml @@ -93,7 +93,8 @@ paths: application/json: { } schema: - type: object # empty json object + type: object + maxProperties: 0 # empty json object 429: description: This request was rate-limited. schema: