Skip to content

Commit

Permalink
remove tracking of image metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Jan 2, 2025
1 parent a8f574d commit 3d936ef
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 1,373 deletions.
44 changes: 0 additions & 44 deletions data/output/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1704,51 +1704,11 @@ components:
$ref: '#/components/schemas/PossibleURLRef'
license:
$ref: '#/components/schemas/PossibleURLRef'
meta:
$ref: '#/components/schemas/ImageMetadata'
required:
- name
- author
- source
- license
ImageMetadata:
description: |
Additional data about the images. Does not have to be displayed.
All fields are optional.
type: object
properties:
date:
description: optional date description
type: string
location:
description: optional location description
type: string
geo:
description: 'optional coordinates in lat,lon'
type: string
image_url:
description: |
optional in contrast to source this points to the image itself.
You should not use this to request the images, as they are not scaled.
type: string
caption:
description: optional caption
type: string
headline:
description: optional headline
type: string
event:
description: optional the event this image was taken at
type: string
faculty:
description: optional the event this image is about
type: string
building:
description: optional the building this image is about
type: string
department:
description: optional the department this image is about
type: string
PossibleURLRef:
description: 'Additional information you should include, if you decide to display the image for legal and attribution reasons'
type: object
Expand Down Expand Up @@ -2598,10 +2558,6 @@ components:
thumb:
type: integer
format: int32
meta:
type: object
additionalProperties:
type: string
required:
- author
- license
Expand Down
1 change: 0 additions & 1 deletion data/processors/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ class ImageSource(PydanticConfiguration):
author: str
license: UrlStr
source: UrlStr
meta: dict[str, str | pydantic.types.date] = Field(default_factory=dict)
offsets: ImageOffset = Field(default_factory=ImageOffset)

@classmethod
Expand Down
Loading

0 comments on commit 3d936ef

Please sign in to comment.