Skip to content

Commit

Permalink
fix: schema
Browse files Browse the repository at this point in the history
  • Loading branch information
srph committed Nov 27, 2024
1 parent a947405 commit e0b8da2
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/agents/clara/echo.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "../echo.schema.json",
"$schema": "../../echo.schema.json",
"creator": "Echos",
"echoToken": {
"symbol": "CLARA",
Expand Down
1 change: 1 addition & 0 deletions src/agents/derp/echo.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "../../echo.schema.json",
"creator": "Echos",
"echoToken": {
"symbol": "DERP",
Expand Down
1 change: 1 addition & 0 deletions src/agents/hal/echo.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "../../echo.schema.json",
"creator": "Echos",
"echoToken": {
"symbol": "HAL",
Expand Down
63 changes: 63 additions & 0 deletions src/echo.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"required": ["creator", "echoToken", "id", "metadata", "name", "verified"],
"properties": {
"id": {
"type": "string",
"description": "Contract address of the echo",
"pattern": "^0x[a-fA-F0-9]{40}$"
},
"creator": {
"type": "string",
"description": "Creator of the echo"
},
"echoToken": {
"type": "object",
"required": ["symbol", "address"],
"properties": {
"symbol": {
"type": "string",
"description": "Token symbol"
},
"address": {
"type": "string",
"description": "Token contract address",
"pattern": "^0x[a-fA-F0-9]{40}$"
}
}
},
"metadata": {
"type": "object",
"required": ["description", "image"],
"properties": {
"description": {
"type": "string",
"description": "A short description about the echo"
},
"image": {
"type": "string",
"description": "IPFS hash of the echo's image"
},
"telegram": {
"type": "string",
"description": "Telegram group URL",
"format": "uri"
},
"twitter": {
"type": "string",
"description": "Twitter/X profile URL",
"format": "uri"
}
}
},
"name": {
"type": "string",
"description": "Name of the echo"
},
"verified": {
"type": "boolean",
"description": "Verification status of the echo"
}
}
}

0 comments on commit e0b8da2

Please sign in to comment.