mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2025-09-05 10:12:46 +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
|
@ -49,7 +49,15 @@ namespace DTO {
|
|||
|
||||
|
||||
class LibraryOptionsResultDto {
|
||||
public: LibraryOptionsResultDto();
|
||||
public:
|
||||
LibraryOptionsResultDto(
|
||||
QList<LibraryOptionInfoDto> metadataSavers,
|
||||
QList<LibraryOptionInfoDto> metadataReaders,
|
||||
QList<LibraryOptionInfoDto> subtitleFetchers,
|
||||
QList<LibraryOptionInfoDto> lyricFetchers,
|
||||
QList<LibraryTypeOptionsDto> typeOptions
|
||||
);
|
||||
|
||||
LibraryOptionsResultDto(const LibraryOptionsResultDto &other);
|
||||
|
||||
/**
|
||||
|
@ -70,8 +78,6 @@ public: LibraryOptionsResultDto();
|
|||
* @brief Gets or sets the metadata savers.
|
||||
*/
|
||||
void setMetadataSavers(QList<LibraryOptionInfoDto> newMetadataSavers);
|
||||
bool metadataSaversNull() const;
|
||||
void setMetadataSaversNull();
|
||||
|
||||
/**
|
||||
* @brief Gets or sets the metadata readers.
|
||||
|
@ -81,8 +87,6 @@ public: LibraryOptionsResultDto();
|
|||
* @brief Gets or sets the metadata readers.
|
||||
*/
|
||||
void setMetadataReaders(QList<LibraryOptionInfoDto> newMetadataReaders);
|
||||
bool metadataReadersNull() const;
|
||||
void setMetadataReadersNull();
|
||||
|
||||
/**
|
||||
* @brief Gets or sets the subtitle fetchers.
|
||||
|
@ -92,8 +96,15 @@ public: LibraryOptionsResultDto();
|
|||
* @brief Gets or sets the subtitle fetchers.
|
||||
*/
|
||||
void setSubtitleFetchers(QList<LibraryOptionInfoDto> newSubtitleFetchers);
|
||||
bool subtitleFetchersNull() const;
|
||||
void setSubtitleFetchersNull();
|
||||
|
||||
/**
|
||||
* @brief Gets or sets the list of lyric fetchers.
|
||||
*/
|
||||
QList<LibraryOptionInfoDto> lyricFetchers() const;
|
||||
/**
|
||||
* @brief Gets or sets the list of lyric fetchers.
|
||||
*/
|
||||
void setLyricFetchers(QList<LibraryOptionInfoDto> newLyricFetchers);
|
||||
|
||||
/**
|
||||
* @brief Gets or sets the type options.
|
||||
|
@ -103,17 +114,18 @@ public: LibraryOptionsResultDto();
|
|||
* @brief Gets or sets the type options.
|
||||
*/
|
||||
void setTypeOptions(QList<LibraryTypeOptionsDto> newTypeOptions);
|
||||
bool typeOptionsNull() const;
|
||||
void setTypeOptionsNull();
|
||||
|
||||
|
||||
protected:
|
||||
QList<LibraryOptionInfoDto> m_metadataSavers;
|
||||
QList<LibraryOptionInfoDto> m_metadataReaders;
|
||||
QList<LibraryOptionInfoDto> m_subtitleFetchers;
|
||||
QList<LibraryOptionInfoDto> m_lyricFetchers;
|
||||
QList<LibraryTypeOptionsDto> m_typeOptions;
|
||||
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing LibraryOptionsResultDto::fromJson();
|
||||
LibraryOptionsResultDto();
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue