Skip to content

Commit d6ec4e7

Browse files
committed
OpenAPI: corrections for SignEip712Response
1 parent 4d5ef47 commit d6ec4e7

3 files changed

Lines changed: 3 additions & 16 deletions

File tree

resources/openapi-mt.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -853,14 +853,7 @@
853853
"SignEip712Response": {
854854
"properties": {
855855
"proof": {
856-
"oneOf": [
857-
{
858-
"type": "null"
859-
},
860-
{
861-
"$ref": "#/components/schemas/SignEip712Proof"
862-
}
863-
]
856+
"$ref": "#/components/schemas/SignEip712Proof"
864857
},
865858
"signature": {
866859
"$ref": "#/components/schemas/Signature"

resources/openapi.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -853,14 +853,7 @@
853853
"SignEip712Response": {
854854
"properties": {
855855
"proof": {
856-
"oneOf": [
857-
{
858-
"type": "null"
859-
},
860-
{
861-
"$ref": "#/components/schemas/SignEip712Proof"
862-
}
863-
]
856+
"$ref": "#/components/schemas/SignEip712Proof"
864857
},
865858
"signature": {
866859
"$ref": "#/components/schemas/Signature"

src/domain/signing/domain/src/use_cases/sign_eip712_use_case.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ pub struct SignEip712Response {
4040
pub verification_method: odf::metadata::DidKey,
4141
pub signature: odf::metadata::Signature,
4242
#[serde(skip_serializing_if = "Option::is_none")]
43+
#[cfg_attr(feature = "utoipa", schema(nullable = false))]
4344
pub proof: Option<SignEip712Proof>,
4445
}
4546

0 commit comments

Comments
 (0)