Skip to content

Commit

Permalink
feat: update schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulydev committed Sep 18, 2024
1 parent e35bc54 commit c6f2ae1
Showing 1 changed file with 38 additions and 17 deletions.
55 changes: 38 additions & 17 deletions src/schema/protocolList.schema.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,27 @@
{
"$defs": {
"multiplierArray": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"amount",
"name"
],
"properties": {
"amount": {
"type": "number",
"minimum": 1,
"maximum": 1000
},
"name": {
"type": "string"
}
}
}
}
},
"type": "array",
"uniqueItems": true,
"items": {
Expand Down Expand Up @@ -46,25 +69,23 @@
}
},
"multipliers": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"amount",
"name"
],
"properties": {
"amount": {
"type": "number",
"minimum": 1,
"maximum": 1000
},
"name": {
"type": "string"
"anyOf": [
{
"$ref": "multiplierArray"
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"lp": {
"$ref": "multiplierArray"
},
"yt": {
"$ref": "multiplierArray"
}
}
}
}
]
}
}
}
Expand Down

0 comments on commit c6f2ae1

Please sign in to comment.