mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2025-09-01 08:52:45 +00:00
[2/3] update openapi spec: generate code
This updates the openapi spec and invokes the code generator to update to the Jellyfin 10.10.6 API. A big motivation to do this was because some mandatory fields have been made obsolete and are no longer included in responses. Sailfin tries to deserialize these mandatory fields and fails deserializing. It was evident in the list of sessions to control. The failing was a bit too gracefully in my opinion, it did not even show that an error occurred, nor was it logged anywhere. It took some time to debug.
This commit is contained in:
parent
eeb9183909
commit
d685b48ec1
504 changed files with 62190 additions and 41202 deletions
|
@ -52,8 +52,13 @@ namespace DTO {
|
|||
|
||||
class ChannelFeatures {
|
||||
public:
|
||||
ChannelFeatures(
|
||||
bool canSearch,
|
||||
ChannelFeatures(
|
||||
QString name,
|
||||
QString jellyfinId,
|
||||
bool canSearch,
|
||||
QList<ChannelMediaType> mediaTypes,
|
||||
QList<ChannelMediaContentType> contentTypes,
|
||||
QList<ChannelItemSortField> defaultSortFields,
|
||||
bool supportsSortOrderToggle,
|
||||
bool supportsLatestMedia,
|
||||
bool canFilter,
|
||||
|
@ -80,8 +85,6 @@ public:
|
|||
* @brief Gets or sets the name.
|
||||
*/
|
||||
void setName(QString newName);
|
||||
bool nameNull() const;
|
||||
void setNameNull();
|
||||
|
||||
/**
|
||||
* @brief Gets or sets the identifier.
|
||||
|
@ -91,8 +94,6 @@ public:
|
|||
* @brief Gets or sets the identifier.
|
||||
*/
|
||||
void setJellyfinId(QString newJellyfinId);
|
||||
bool jellyfinIdNull() const;
|
||||
void setJellyfinIdNull();
|
||||
|
||||
/**
|
||||
* @brief Gets or sets a value indicating whether this instance can search.
|
||||
|
@ -111,8 +112,6 @@ public:
|
|||
* @brief Gets or sets the media types.
|
||||
*/
|
||||
void setMediaTypes(QList<ChannelMediaType> newMediaTypes);
|
||||
bool mediaTypesNull() const;
|
||||
void setMediaTypesNull();
|
||||
|
||||
/**
|
||||
* @brief Gets or sets the content types.
|
||||
|
@ -122,15 +121,13 @@ public:
|
|||
* @brief Gets or sets the content types.
|
||||
*/
|
||||
void setContentTypes(QList<ChannelMediaContentType> newContentTypes);
|
||||
bool contentTypesNull() const;
|
||||
void setContentTypesNull();
|
||||
|
||||
/**
|
||||
* @brief Represents the maximum number of records the channel allows retrieving at a time.
|
||||
* @brief Gets or sets the maximum number of records the channel allows retrieving at a time.
|
||||
*/
|
||||
std::optional<qint32> maxPageSize() const;
|
||||
/**
|
||||
* @brief Represents the maximum number of records the channel allows retrieving at a time.
|
||||
* @brief Gets or sets the maximum number of records the channel allows retrieving at a time.
|
||||
*/
|
||||
void setMaxPageSize(std::optional<qint32> newMaxPageSize);
|
||||
bool maxPageSizeNull() const;
|
||||
|
@ -155,15 +152,13 @@ public:
|
|||
* @brief Gets or sets the default sort orders.
|
||||
*/
|
||||
void setDefaultSortFields(QList<ChannelItemSortField> newDefaultSortFields);
|
||||
bool defaultSortFieldsNull() const;
|
||||
void setDefaultSortFieldsNull();
|
||||
|
||||
/**
|
||||
* @brief Indicates if a sort ascending/descending toggle is supported or not.
|
||||
* @brief Gets or sets a value indicating whether a sort ascending/descending toggle is supported.
|
||||
*/
|
||||
bool supportsSortOrderToggle() const;
|
||||
/**
|
||||
* @brief Indicates if a sort ascending/descending toggle is supported or not.
|
||||
* @brief Gets or sets a value indicating whether a sort ascending/descending toggle is supported.
|
||||
*/
|
||||
void setSupportsSortOrderToggle(bool newSupportsSortOrderToggle);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue