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
|
@ -51,7 +51,13 @@ namespace DTO {
|
|||
|
||||
|
||||
class ChannelMappingOptionsDto {
|
||||
public: ChannelMappingOptionsDto();
|
||||
public:
|
||||
ChannelMappingOptionsDto(
|
||||
QList<TunerChannelMapping> tunerChannels,
|
||||
QList<NameIdPair> providerChannels,
|
||||
QList<NameValuePair> mappings
|
||||
);
|
||||
|
||||
ChannelMappingOptionsDto(const ChannelMappingOptionsDto &other);
|
||||
|
||||
/**
|
||||
|
@ -72,8 +78,6 @@ public: ChannelMappingOptionsDto();
|
|||
* @brief Gets or sets list of tuner channels.
|
||||
*/
|
||||
void setTunerChannels(QList<TunerChannelMapping> newTunerChannels);
|
||||
bool tunerChannelsNull() const;
|
||||
void setTunerChannelsNull();
|
||||
|
||||
/**
|
||||
* @brief Gets or sets list of provider channels.
|
||||
|
@ -83,8 +87,6 @@ public: ChannelMappingOptionsDto();
|
|||
* @brief Gets or sets list of provider channels.
|
||||
*/
|
||||
void setProviderChannels(QList<NameIdPair> newProviderChannels);
|
||||
bool providerChannelsNull() const;
|
||||
void setProviderChannelsNull();
|
||||
|
||||
/**
|
||||
* @brief Gets or sets list of mappings.
|
||||
|
@ -94,8 +96,6 @@ public: ChannelMappingOptionsDto();
|
|||
* @brief Gets or sets list of mappings.
|
||||
*/
|
||||
void setMappings(QList<NameValuePair> newMappings);
|
||||
bool mappingsNull() const;
|
||||
void setMappingsNull();
|
||||
|
||||
/**
|
||||
* @brief Gets or sets provider name.
|
||||
|
@ -115,7 +115,9 @@ protected:
|
|||
QList<NameValuePair> m_mappings;
|
||||
QString m_providerName;
|
||||
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing ChannelMappingOptionsDto::fromJson();
|
||||
ChannelMappingOptionsDto();
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue