Skip to content

Commit

Permalink
make thumbnail URL fields format=uri
Browse files Browse the repository at this point in the history
This mostly results in checks against the string being empty, or
unlimited size.
  • Loading branch information
bnewbold committed Dec 28, 2023
1 parent 4d6ec9c commit eddda66
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lexicons/app/bsky/embed/external.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"maxGraphemes": 1000,
"maxLength": 10000
},
"thumb": { "type": "string" }
"thumb": { "type": "string", "format": "uri" }
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions lexicons/app/bsky/embed/images.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@
"type": "object",
"required": ["thumb", "fullsize", "alt"],
"properties": {
"thumb": { "type": "string" },
"fullsize": { "type": "string" },
"thumb": { "type": "string", "format": "uri" },
"fullsize": { "type": "string", "format": "uri" },
"alt": {
"type": "string",
"maxGraphemes": 5000,
Expand Down

0 comments on commit eddda66

Please sign in to comment.