mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2025-09-08 10:42: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
|
@ -35,6 +35,7 @@
|
|||
#include <QString>
|
||||
#include <optional>
|
||||
|
||||
#include "JellyfinQt/dto/personkind.h"
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
|
@ -46,7 +47,12 @@ namespace DTO {
|
|||
|
||||
|
||||
class BaseItemPerson {
|
||||
public: BaseItemPerson();
|
||||
public:
|
||||
BaseItemPerson(
|
||||
QString jellyfinId,
|
||||
PersonKind type
|
||||
);
|
||||
|
||||
BaseItemPerson(const BaseItemPerson &other);
|
||||
|
||||
/**
|
||||
|
@ -78,8 +84,6 @@ public: BaseItemPerson();
|
|||
* @brief Gets or sets the identifier.
|
||||
*/
|
||||
void setJellyfinId(QString newJellyfinId);
|
||||
bool jellyfinIdNull() const;
|
||||
void setJellyfinIdNull();
|
||||
|
||||
/**
|
||||
* @brief Gets or sets the role.
|
||||
|
@ -92,16 +96,10 @@ public: BaseItemPerson();
|
|||
bool roleNull() const;
|
||||
void setRoleNull();
|
||||
|
||||
/**
|
||||
* @brief Gets or sets the type.
|
||||
*/
|
||||
QString type() const;
|
||||
/**
|
||||
* @brief Gets or sets the type.
|
||||
*/
|
||||
void setType(QString newType);
|
||||
bool typeNull() const;
|
||||
void setTypeNull();
|
||||
|
||||
PersonKind type() const;
|
||||
|
||||
void setType(PersonKind newType);
|
||||
|
||||
/**
|
||||
* @brief Gets or sets the primary image tag.
|
||||
|
@ -130,11 +128,13 @@ protected:
|
|||
QString m_name;
|
||||
QString m_jellyfinId;
|
||||
QString m_role;
|
||||
QString m_type;
|
||||
PersonKind m_type;
|
||||
QString m_primaryImageTag;
|
||||
QJsonObject m_imageBlurHashes;
|
||||
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing BaseItemPerson::fromJson();
|
||||
BaseItemPerson();
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue