Skip to content

Commit

Permalink
fix(connector-fabric): runTransactionV1 Open API validation crash
Browse files Browse the repository at this point in the history
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 <peter.somogyvari@accenture.com>
petermetz committed Aug 21, 2023

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
1 parent 38502b5 commit 516dd49
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
},
Expand Down Expand Up @@ -878,6 +878,7 @@
"items": {
"$ref": "#/components/schemas/FileBase64"
},
"type": "array",
"minItems": 1,
"maxItems": 65535,
"nullable": false
Expand Down

0 comments on commit 516dd49

Please sign in to comment.