{ "lexicon": 1, "id": "social.grain.photo.defs", "defs": { "photoView": { "type": "object", "required": [ "uri", "cid", "thumb", "fullsize", "aspectRatio" ], "properties": { "uri": { "type": "string", "format": "at-uri" }, "cid": { "type": "string", "format": "cid" }, "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": { "type": "string", "description": "Alt text description of the image, for accessibility." }, "aspectRatio": { "type": "ref", "ref": "social.grain.defs#aspectRatio" }, "exif": { "type": "ref", "ref": "social.grain.photo.defs#exifView", "description": "EXIF metadata for the photo, if available." }, "gallery": { "type": "ref", "ref": "#galleryState" } } }, "exifView": { "type": "object", "required": [ "uri", "cid", "photo", "createdAt" ], "properties": { "uri": { "type": "string", "format": "at-uri" }, "cid": { "type": "string", "format": "cid" }, "photo": { "type": "string", "format": "at-uri" }, "createdAt": { "type": "string", "format": "datetime" }, "dateTimeOriginal": { "type": "string" }, "exposureTime": { "type": "string" }, "fNumber": { "type": "string" }, "flash": { "type": "string" }, "focalLengthIn35mmFormat": { "type": "string" }, "iSO": { "type": "integer" }, "lensMake": { "type": "string" }, "lensModel": { "type": "string" }, "make": { "type": "string" }, "model": { "type": "string" } } }, "galleryState": { "type": "object", "required": [ "item", "itemCreatedAt", "itemPosition" ], "description": "Metadata about the photo's relationship with the subject content. Only has meaningful content when photo is attached to a gallery.", "properties": { "item": { "type": "string", "format": "at-uri" }, "itemCreatedAt": { "type": "string", "format": "datetime" }, "itemPosition": { "type": "integer" } } } } }