From 516dd49fd443fc2d50b003104301b8060327b35a Mon Sep 17 00:00:00 2001 From: Peter Somogyvari Date: Sat, 19 Aug 2023 22:26:19 -0700 Subject: [PATCH] fix(connector-fabric): runTransactionV1 Open API validation crash The "express-openapi-validator" package was crashing while trying to parse our Fabric connector's Open API spec because of the typo that in the specs the "description" field for some schema elements were named "properties" which is a reserved field in the schema of the specs. Fixing the typo in the spec document made the problem go away. Signed-off-by: Peter Somogyvari --- .../src/main/json/openapi.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/cactus-plugin-ledger-connector-fabric/src/main/json/openapi.json b/packages/cactus-plugin-ledger-connector-fabric/src/main/json/openapi.json index 183869ac11..9037c59c34 100644 --- a/packages/cactus-plugin-ledger-connector-fabric/src/main/json/openapi.json +++ b/packages/cactus-plugin-ledger-connector-fabric/src/main/json/openapi.json @@ -123,11 +123,11 @@ }, "vaultTransitKey": { "$ref": "#/components/schemas/VaultTransitKey", - "properties": "vault key details , if Vault-X.509 identity provider to be used for singing fabric messages" + "description": "vault key details , if Vault-X.509 identity provider to be used for singing fabric messages" }, "webSocketKey": { "$ref": "#/components/schemas/WebSocketKey", - "properties": "web-socket key details , if WS-X.509 identity provider to be used for singing fabric messages" + "description": "web-socket key details , if WS-X.509 identity provider to be used for singing fabric messages" } } }, @@ -878,6 +878,7 @@ "items": { "$ref": "#/components/schemas/FileBase64" }, + "type": "array", "minItems": 1, "maxItems": 65535, "nullable": false