Skip to content

Commit

Permalink
Merge pull request #10 from Stride-Labs/kier/fix-validation
Browse files Browse the repository at this point in the history
Fix validation for Telegram & Twitter
  • Loading branch information
srph authored Dec 10, 2024
2 parents 21d2ba6 + c26e6ed commit 384cfee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/agents/vito/echo.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"metadata": {
"description": "digital fixer with gabagool roots // leave the gun, take the cannoli 🤌",
"image": "bafybeihrlonv2vxdjvjblpffa4tciq4sj4p5gnowgh5h5oy6phkx374vg4",
"telegram": "",
"telegram": null,
"twitter": "https://x.com/vito_him"
},
"name": "Vito \"the Don\"",
Expand Down
6 changes: 3 additions & 3 deletions src/echo.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
"metadata": {
"type": "object",
"required": ["description", "image"],
"required": ["description", "image", "telegram", "twitter"],
"properties": {
"description": {
"type": "string",
Expand All @@ -40,12 +40,12 @@
"description": "IPFS hash of the echo's image"
},
"telegram": {
"type": "string",
"type": ["string", "null"],
"description": "Telegram group URL",
"pattern": "^https?:\\/\\/(?:t\\.me|telegram\\.me)\\/(?:[+])?[a-zA-Z0-9_]+$"
},
"twitter": {
"type": "string",
"type": ["string", "null"],
"description": "Twitter/X profile URL",
"pattern": "^https?:\\/\\/(?:twitter\\.com|x\\.com)\\/[a-zA-Z0-9_]+$"
}
Expand Down

0 comments on commit 384cfee

Please sign in to comment.