From 2910857e6130bdfafc1041ddaaf2f3e908d0a61d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20K=C3=B6nig?= <33655937+jkoenig134@users.noreply.github.com> Date: Mon, 11 Nov 2024 14:49:11 +0100 Subject: [PATCH] Some objects in the OpenAPI spec are incorrect (#309) * fix: remove required atType * fix: add peerIdentity to realtionship * fix: make required --- src/modules/coreHttpApi/openapi.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/modules/coreHttpApi/openapi.yml b/src/modules/coreHttpApi/openapi.yml index 4e32285a..842677fc 100644 --- a/src/modules/coreHttpApi/openapi.yml +++ b/src/modules/coreHttpApi/openapi.yml @@ -5113,7 +5113,6 @@ components: - $ref: "#/components/schemas/RequestResponseContentItem" - $ref: "#/components/schemas/RequestResponseContentItemGroup" required: - - "@type" - result - requestId - items @@ -5615,6 +5614,20 @@ components: - $ref: "#/components/schemas/Address" nullable: false description: The address of the peer identity. + peerIdentity: + type: object + additionalProperties: false + properties: + address: + allOf: + - $ref: "#/components/schemas/Address" + nullable: false + publicKey: + type: string + nullable: false + required: + - address + - publicKey peerDeletionInfo: type: object additionalProperties: false @@ -5646,6 +5659,7 @@ components: - template - status - peer + - peerIdentity - creationContent - auditLog