replaced datetime with a schema

This commit is contained in:
JasonLandbridge
2025-11-29 10:51:13 +01:00
parent 127e803af5
commit 05b99928c8

View File

@@ -4741,19 +4741,11 @@ paths:
- 'null' - 'null'
renewsAt: renewsAt:
oneOf: oneOf:
- type: - $ref: '#/components/schemas/PlexDateTime'
- integer
example: 1556281940
description: Unix epoch datetime in seconds
format: int64
- type: 'null' - type: 'null'
endsAt: endsAt:
oneOf: oneOf:
- type: - $ref: '#/components/schemas/PlexDateTime'
- integer
example: 1556281940
description: Unix epoch datetime in seconds
format: int64
- type: 'null' - type: 'null'
canceled: canceled:
type: boolean type: boolean
@@ -5135,13 +5127,7 @@ paths:
description: Name of the Plex server of the connected user. description: Name of the Plex server of the connected user.
example: ConnectedUserFlix example: ConnectedUserFlix
lastSeenAt: lastSeenAt:
allOf: $ref: '#/components/schemas/PlexDateTime'
- description: Timestamp of the last time the server was seen.
- type:
- integer
example: 1556281940
description: Unix epoch datetime in seconds
format: int64
numLibraries: numLibraries:
type: integer type: integer
description: Number of libraries in the server this user has access to. description: Number of libraries in the server this user has access to.
@@ -15887,19 +15873,11 @@ components:
description: Unknown description: Unknown
adsConsentReminderAt: adsConsentReminderAt:
oneOf: oneOf:
- type: - $ref: '#/components/schemas/PlexDateTime'
- integer
example: 1556281940
description: Unix epoch datetime in seconds
format: int64
- type: 'null' - type: 'null'
adsConsentSetAt: adsConsentSetAt:
oneOf: oneOf:
- type: - $ref: '#/components/schemas/PlexDateTime'
- integer
example: 1556281940
description: Unix epoch datetime in seconds
format: int64
- type: 'null' - type: 'null'
anonymous: anonymous:
type: type:
@@ -15975,11 +15953,7 @@ components:
example: 13692262 example: 13692262
format: int32 format: int32
joinedAt: joinedAt:
type: $ref: '#/components/schemas/PlexDateTime'
- integer
example: 1556281940
description: Unix epoch datetime in seconds
format: int64
locale: locale:
type: type:
- string - string
@@ -16013,11 +15987,7 @@ components:
description: If the account has a Plex Home PIN enabled description: If the account has a Plex Home PIN enabled
default: false default: false
rememberExpiresAt: rememberExpiresAt:
type: $ref: '#/components/schemas/PlexDateTime'
- integer
example: 1556281940
description: Unix epoch datetime in seconds
format: int64
restricted: restricted:
type: boolean type: boolean
description: If the account is a Plex Home managed user description: If the account is a Plex Home managed user
@@ -16379,6 +16349,12 @@ components:
- string - string
- 'null' - 'null'
example: null example: null
PlexDateTime:
type:
- integer
example: 1556281940
description: Unix epoch datetime in seconds
format: int64
UserProfile: UserProfile:
title: UserProfile title: UserProfile
type: object type: object