6e552a26da
* lexicons: use format=uri for more bsky URLs * lexicons: use format=uri for URLs in server description (links to policies) * codegen lex changes
52 lines
1.3 KiB
JSON
52 lines
1.3 KiB
JSON
{
|
|
"lexicon": 1,
|
|
"id": "app.bsky.embed.external",
|
|
"defs": {
|
|
"main": {
|
|
"type": "object",
|
|
"description": "A representation of some externally linked content (eg, a URL and 'card'), embedded in a Bluesky record (eg, a post).",
|
|
"required": ["external"],
|
|
"properties": {
|
|
"external": {
|
|
"type": "ref",
|
|
"ref": "#external"
|
|
}
|
|
}
|
|
},
|
|
"external": {
|
|
"type": "object",
|
|
"required": ["uri", "title", "description"],
|
|
"properties": {
|
|
"uri": { "type": "string", "format": "uri" },
|
|
"title": { "type": "string" },
|
|
"description": { "type": "string" },
|
|
"thumb": {
|
|
"type": "blob",
|
|
"accept": ["image/*"],
|
|
"maxSize": 1000000
|
|
}
|
|
}
|
|
},
|
|
"view": {
|
|
"type": "object",
|
|
"required": ["external"],
|
|
"properties": {
|
|
"external": {
|
|
"type": "ref",
|
|
"ref": "#viewExternal"
|
|
}
|
|
}
|
|
},
|
|
"viewExternal": {
|
|
"type": "object",
|
|
"required": ["uri", "title", "description"],
|
|
"properties": {
|
|
"uri": { "type": "string", "format": "uri" },
|
|
"title": { "type": "string" },
|
|
"description": { "type": "string" },
|
|
"thumb": { "type": "string", "format": "uri" }
|
|
}
|
|
}
|
|
}
|
|
}
|