Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add attachment metadata image #37

Open
wants to merge 2 commits into
base: v1
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 74 additions & 0 deletions common/schemas/Attachment.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ components:
- required:
- name
- "@type"
discriminator:
propertyName: "@type"
mapping:
Attachment: "#/components/schemas/Attachment"
AttachmentImage: "#/components/schemas/AttachmentImage"
properties:
id:
type: string
Expand Down Expand Up @@ -80,3 +85,72 @@ components:
type: string
readOnly: true
example: 8cf1bc0fca7f4158b8eb807be15fd7fd21bfe52d956ce3ede1511671c97dad61

AttachmentImage:
allOf:
- $ref: "./Attachment.openapi.yaml#/components/schemas/Attachment"
- properties:
"@type":
default: AttachmentImage
example: AttachmentImage
width:
description: The width of the image in pixels.
type: integer
format: int64
example: 800
readOnly: true
height:
description: The height of the image in pixels.
type: integer
format: int64
example: 600
readOnly: true
resolution:
description: The resolution of the image in DPI.
type: integer
format: int64
example: 72
readOnly: true
colorDepth:
description: The color depth of the image in bits.
type: integer
format: int64
example: 24
readOnly: true
thumbnail:
description: The thumbnail of the image.
type: string
format: base64
readOnly: true
thumbnailWidth:
description: The width of the thumbnail in pixels.
type: integer
format: int64
example: 80
readOnly: true
thumbnailHeight:
description: The height of the thumbnail in pixels.
type: integer
format: int64
example: 60
readOnly: true
geoLocation:
description: The geo location of the image.
readOnly: true
allOf:
- $ref: "./GeographicPoint.openapi.yaml#/components/schemas/GeographicPoint"
exif:
description: The EXIF data of the image.
type: object
readOnly: true
additionalProperties:
type: string
example:
{
"Make": "Canon",
"Model": "Canon EOS 5D Mark III",
"ExposureTime": "1/60",
"FNumber": "f/4.0",
"ISOSpeedRatings": 3200,
"DateTimeOriginal": "2019-12-31T23:59:59Z",
}