Skip to content

Commit 8fc538d

Browse files
chore: update OpenAPI spec from 0x-labs (#189)
Co-authored-by: pgrzesik <17499590+pgrzesik@users.noreply.github.com>
1 parent 38c14f9 commit 8fc538d

1 file changed

Lines changed: 44 additions & 12 deletions

File tree

fern/openapi.json

Lines changed: 44 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5549,14 +5549,30 @@
55495549
"signature": {
55505550
"type": "object",
55515551
"properties": {
5552-
"signatureType": { "type": "number" },
5553-
"v": { "type": "number" },
5554-
"r": { "type": "string" },
5555-
"s": { "type": "string" },
5556-
"signatureBytes": { "type": "string" }
5552+
"signatureType": {
5553+
"type": "number",
5554+
"description": "Signature type enum: `2` (EIP712), `3` (EthSign), or `5` (Raw). Determines which other fields are required."
5555+
},
5556+
"v": {
5557+
"type": "number",
5558+
"description": "ECDSA recovery id. Required when signatureType is `2` (EIP712) or `3` (EthSign)."
5559+
},
5560+
"r": {
5561+
"type": "string",
5562+
"description": "ECDSA signature r value (hex string). Required when signatureType is `2` (EIP712) or `3` (EthSign)."
5563+
},
5564+
"s": {
5565+
"type": "string",
5566+
"description": "ECDSA signature s value (hex string). Required when signatureType is `2` (EIP712) or `3` (EthSign)."
5567+
},
5568+
"signatureBytes": {
5569+
"type": "string",
5570+
"description": "Raw signature bytes (hex string). Required when signatureType is `5` (Raw). Must not be provided for other signature types."
5571+
}
55575572
},
55585573
"required": ["signatureType"],
5559-
"additionalProperties": false
5574+
"additionalProperties": false,
5575+
"description": "A discriminated union based on `signatureType`. For EIP712 (`signatureType: 2`) or EthSign (`signatureType: 3`): provide `v`, `r`, and `s`. For Raw (`signatureType: 5`): provide `signatureBytes` only. Use Raw (`signatureType: 5`) to support smart contract wallets (e.g. ERC-1271) that return opaque signature bytes."
55605576
}
55615577
},
55625578
"required": ["type", "eip712", "signature"],
@@ -5774,14 +5790,30 @@
57745790
"signature": {
57755791
"type": "object",
57765792
"properties": {
5777-
"signatureType": { "type": "number" },
5778-
"v": { "type": "number" },
5779-
"r": { "type": "string" },
5780-
"s": { "type": "string" },
5781-
"signatureBytes": { "type": "string" }
5793+
"signatureType": {
5794+
"type": "number",
5795+
"description": "Signature type enum: `2` (EIP712), `3` (EthSign), or `5` (Raw). Determines which other fields are required."
5796+
},
5797+
"v": {
5798+
"type": "number",
5799+
"description": "ECDSA recovery id. Required when signatureType is `2` (EIP712) or `3` (EthSign)."
5800+
},
5801+
"r": {
5802+
"type": "string",
5803+
"description": "ECDSA signature r value (hex string). Required when signatureType is `2` (EIP712) or `3` (EthSign)."
5804+
},
5805+
"s": {
5806+
"type": "string",
5807+
"description": "ECDSA signature s value (hex string). Required when signatureType is `2` (EIP712) or `3` (EthSign)."
5808+
},
5809+
"signatureBytes": {
5810+
"type": "string",
5811+
"description": "Raw signature bytes (hex string). Required when signatureType is `5` (Raw). Must not be provided for other signature types."
5812+
}
57825813
},
57835814
"required": ["signatureType"],
5784-
"additionalProperties": false
5815+
"additionalProperties": false,
5816+
"description": "A discriminated union based on `signatureType`. For EIP712 (`signatureType: 2`) or EthSign (`signatureType: 3`): provide `v`, `r`, and `s`. For Raw (`signatureType: 5`): provide `signatureBytes` only. Use Raw (`signatureType: 5`) to support smart contract wallets (e.g. ERC-1271) that return opaque signature bytes."
57855817
}
57865818
},
57875819
"required": ["type", "eip712", "signature"],

0 commit comments

Comments
 (0)