socialGrainPhoto top-level constant
social.grain.photo
Implementation
const socialGrainPhoto = <String, dynamic>{
"lexicon": 1,
"id": "social.grain.photo",
"defs": {
"main": {
"type": "record",
"key": "tid",
"record": {
"type": "object",
"required": ["photo", "alt"],
"properties": {
"alt": {
"type": "string",
"description":
"Alt text description of the image, for accessibility.",
},
"photo": {
"type": "blob",
"accept": ["image/*"],
"maxSize": 1000000,
},
"createdAt": {"type": "string", "format": "datetime"},
"aspectRatio": {
"type": "ref",
"ref": "social.grain.defs#aspectRatio",
},
},
},
},
},
};