Skip to content

Commit

Permalink
lexicons: use format=uri for more bsky URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
bnewbold committed Mar 20, 2024
1 parent faa8d2f commit b4783b8
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
8 changes: 4 additions & 4 deletions lexicons/app/bsky/actor/defs.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"maxGraphemes": 64,
"maxLength": 640
},
"avatar": { "type": "string" },
"avatar": { "type": "string", "format": "uri" },
"associated": {
"type": "ref",
"ref": "#profileAssociated"
Expand Down Expand Up @@ -41,7 +41,7 @@
"maxGraphemes": 256,
"maxLength": 2560
},
"avatar": { "type": "string" },
"avatar": { "type": "string", "format": "uri" },
"associated": {
"type": "ref",
"ref": "#profileAssociated"
Expand Down Expand Up @@ -70,8 +70,8 @@
"maxGraphemes": 256,
"maxLength": 2560
},
"avatar": { "type": "string" },
"banner": { "type": "string" },
"avatar": { "type": "string", "format": "uri" },
"banner": { "type": "string", "format": "uri" },
"followersCount": { "type": "integer" },
"followsCount": { "type": "integer" },
"postsCount": { "type": "integer" },
Expand Down
2 changes: 1 addition & 1 deletion lexicons/app/bsky/embed/external.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"uri": { "type": "string", "format": "uri" },
"title": { "type": "string" },
"description": { "type": "string" },
"thumb": { "type": "string" }
"thumb": { "type": "string", "format": "uri" }
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions lexicons/app/bsky/embed/images.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,12 @@
"properties": {
"thumb": {
"type": "string",
"format": "uri",
"description": "Fully-qualified URL where a thumbnail of the image can be fetched. For example, CDN location provided by the App View."
},
"fullsize": {
"type": "string",
"format": "uri",
"description": "Fully-qualified URL where a large version of the image can be fetched. May or may not be the exact original blob. For example, CDN location provided by the App View."
},
"alt": {
Expand Down
2 changes: 1 addition & 1 deletion lexicons/app/bsky/feed/defs.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
"type": "array",
"items": { "type": "ref", "ref": "app.bsky.richtext.facet" }
},
"avatar": { "type": "string" },
"avatar": { "type": "string", "format": "uri" },
"likeCount": { "type": "integer", "minimum": 0 },
"labels": {
"type": "array",
Expand Down
4 changes: 2 additions & 2 deletions lexicons/app/bsky/graph/defs.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"cid": { "type": "string", "format": "cid" },
"name": { "type": "string", "maxLength": 64, "minLength": 1 },
"purpose": { "type": "ref", "ref": "#listPurpose" },
"avatar": { "type": "string" },
"avatar": { "type": "string", "format": "uri" },
"labels": {
"type": "array",
"items": { "type": "ref", "ref": "com.atproto.label.defs#label" }
Expand All @@ -37,7 +37,7 @@
"type": "array",
"items": { "type": "ref", "ref": "app.bsky.richtext.facet" }
},
"avatar": { "type": "string" },
"avatar": { "type": "string", "format": "uri" },
"labels": {
"type": "array",
"items": { "type": "ref", "ref": "com.atproto.label.defs#label" }
Expand Down

0 comments on commit b4783b8

Please sign in to comment.