Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spec: add support for providing a single URL for all EIP-712 schemas #66

Merged
merged 2 commits into from
Oct 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 25 additions & 15 deletions specs/erc7730-v1.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,22 +129,32 @@
"properties" : {
"schemas" :
{
"title": "EIP 712 Schemas constraint",
"type": "array",
"description": "An array of EIP712 schemas that can be used to validate the message. The message types should match exactly one of those schema.",
"items": {
"oneOf": [
{
"$ref": "#/$definitions/eip712-json-schema"
},
{
"title": "An EIP712 Schema url",
"description": "URL of an EIP712 Schema bound to this file.",
"type": "string",
"format": "uri-reference"
"oneOf": [
{
"title": "An EIP712 Schemas url",
"description": "URL of an array of EIP712 schemas that can be used to validate the message. The message types should match exactly one of those schema.",
"type": "string",
"format": "uri-reference"
},
{
"title": "EIP 712 Schemas constraint",
"type": "array",
"description": "An array of EIP712 schemas that can be used to validate the message. The message types should match exactly one of those schema.",
"items": {
"oneOf": [
{
"$ref": "#/$definitions/eip712-json-schema"
},
{
"title": "An EIP712 Schema url",
"description": "URL of an EIP712 Schema bound to this file.",
"type": "string",
"format": "uri-reference"
}
]
}
]
}
}
]
},
"domain": {
"title": "EIP 712 Domain Binding constraint",
Expand Down