replaced guids with a ref

This commit is contained in:
JasonLandbridge
2025-06-03 13:42:56 +02:00
parent 170f39cb80
commit 315ef8fd2f
5 changed files with 30 additions and 38 deletions

View File

@@ -0,0 +1,25 @@
type: object
properties:
Guid:
x-speakeasy-name-override: guids
type: array
items:
type: object
required:
- id
properties:
id:
type: string
description: |
The unique identifier for the Guid. Can be prefixed with imdb://, tmdb://, tvdb://
pattern: "^(imdb|tmdb|tvdb)://.+$"
example:
imdbExample:
summary: IMDB example
value: imdb://tt13015952
tmdbExample:
summary: TMDB example
value: tmdb://2434012
tvdbExample:
summary: TVDB example
value: tvdb://7945991

View File

@@ -1,10 +1,8 @@
type: object
required:
- image
description: "The URL for the rating image, for example from IMDb."
properties:
image:
type: string
description: "The URL for the rating image, for example from IMDb."
example: "imdb://image.rating"

View File

@@ -112,6 +112,7 @@ get:
- $ref: "../../../models/meta-data/year.yaml"
- $ref: "../../../models/meta-data/objects/image.yaml"
- $ref: "../../../models/meta-data/objects/ultra-blur-colors.yaml"
- $ref: "../../../models/meta-data/guid/guid-array.yaml"
- type: object
properties:
Media:
@@ -187,17 +188,6 @@ get:
items:
allOf:
- $ref: "../../../models/meta-data/location/path.yaml"
Guid:
x-speakeasy-name-override: guids
type: array
items:
type: object
properties:
id:
type: string
description: |
The unique identifier for the Guid. Can be imdb://tt0286347, tmdb://1763, tvdb://2337
example: tvdb://2337
Collection:
type: array
items:

View File

@@ -12,7 +12,7 @@ get:
description: The id(s) of the library item(s) to return metadata for. Can be a single ID or comma-separated list of IDs.
schema:
type: string
pattern: '^[0-9]+(,[0-9]+)*$'
pattern: "^[0-9]+(,[0-9]+)*$"
example: "21119,21617"
required: true
- name: includeConcerts
@@ -194,6 +194,7 @@ get:
- $ref: "../../../../models/meta-data/library-section-id.yaml"
- $ref: "../../../../models/meta-data/library-section-title.yaml"
- $ref: "../../../../models/meta-data/library-section-key.yaml"
- $ref: "../../../../models/meta-data/guid/guid-array.yaml"
- type: object
properties:
Media:
@@ -246,18 +247,6 @@ get:
- $ref: "../../../../models/role/filter.yaml"
- $ref: "../../../../models/role/tag-key.yaml"
- $ref: "../../../../models/role/thumb.yaml"
Guid:
x-speakeasy-name-override: Guids
type: array
items:
type: object
required:
- id
properties:
id:
type: string
description: "The GUID value."
example: "imdb://tt3032476"
Rating:
x-speakeasy-name-override: Ratings
type: array

View File

@@ -110,6 +110,7 @@ get:
- $ref: "../../../../models/meta-data/user-rating.yaml"
- $ref: "../../../../models/meta-data/objects/image.yaml"
- $ref: "../../../../models/meta-data/objects/ultra-blur-colors.yaml"
- $ref: "../../../../models/meta-data/guid/guid-array.yaml"
- type: object
properties:
Media:
@@ -140,17 +141,6 @@ get:
items:
allOf:
- $ref: "../../../../models/role/tag.yaml"
Guid:
x-speakeasy-name-override: guids
type: array
items:
type: object
properties:
id:
type: string
description: |
The unique identifier for the Guid. Can be imdb://tt0286347, tmdb://1763, tvdb://2337
example: tvdb://2337
Collection:
type: array
items: