1
0
Fork 0
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:
Chris Josten 2025-03-13 02:39:07 +01:00
parent eeb9183909
commit d685b48ec1
504 changed files with 62190 additions and 41202 deletions

View file

@ -32,11 +32,9 @@
#include <QJsonObject>
#include <QJsonValue>
#include <QSharedPointer>
#include <QString>
#include <optional>
#include "JellyfinQt/dto/version.h"
#include "JellyfinQt/support/jsonconv.h"
namespace Jellyfin {
@ -50,8 +48,7 @@ namespace DTO {
class IPlugin {
public:
IPlugin(
QString jellyfinId,
QSharedPointer<Version> version,
QString jellyfinId,
bool canUninstall
);
@ -98,10 +95,16 @@ public:
*/
void setJellyfinId(QString newJellyfinId);
QSharedPointer<Version> version() const;
void setVersion(QSharedPointer<Version> newVersion);
/**
* @brief Gets the plugin version.
*/
QString version() const;
/**
* @brief Gets the plugin version.
*/
void setVersion(QString newVersion);
bool versionNull() const;
void setVersionNull();
/**
* @brief Gets the path to the assembly file.
@ -139,7 +142,7 @@ protected:
QString m_name;
QString m_description;
QString m_jellyfinId;
QSharedPointer<Version> m_version = QSharedPointer<Version>();
QString m_version;
QString m_assemblyFilePath;
bool m_canUninstall;
QString m_dataFolderPath;