mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2025-09-05 18:22: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
|
@ -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 {
|
||||
|
@ -49,8 +47,11 @@ namespace DTO {
|
|||
|
||||
class VersionInfo {
|
||||
public:
|
||||
VersionInfo(
|
||||
QSharedPointer<Version> versionNumber
|
||||
VersionInfo(
|
||||
QString version,
|
||||
QString versionNumber,
|
||||
QString repositoryName,
|
||||
QString repositoryUrl
|
||||
);
|
||||
|
||||
VersionInfo(const VersionInfo &other);
|
||||
|
@ -73,13 +74,15 @@ public:
|
|||
* @brief Gets or sets the version.
|
||||
*/
|
||||
void setVersion(QString newVersion);
|
||||
bool versionNull() const;
|
||||
void setVersionNull();
|
||||
|
||||
|
||||
QSharedPointer<Version> versionNumber() const;
|
||||
|
||||
void setVersionNumber(QSharedPointer<Version> newVersionNumber);
|
||||
/**
|
||||
* @brief Gets the version as a System.Version.
|
||||
*/
|
||||
QString versionNumber() const;
|
||||
/**
|
||||
* @brief Gets the version as a System.Version.
|
||||
*/
|
||||
void setVersionNumber(QString newVersionNumber);
|
||||
|
||||
/**
|
||||
* @brief Gets or sets the changelog for this version.
|
||||
|
@ -144,8 +147,6 @@ public:
|
|||
* @brief Gets or sets the repository name.
|
||||
*/
|
||||
void setRepositoryName(QString newRepositoryName);
|
||||
bool repositoryNameNull() const;
|
||||
void setRepositoryNameNull();
|
||||
|
||||
/**
|
||||
* @brief Gets or sets the repository url.
|
||||
|
@ -155,13 +156,11 @@ public:
|
|||
* @brief Gets or sets the repository url.
|
||||
*/
|
||||
void setRepositoryUrl(QString newRepositoryUrl);
|
||||
bool repositoryUrlNull() const;
|
||||
void setRepositoryUrlNull();
|
||||
|
||||
|
||||
protected:
|
||||
QString m_version;
|
||||
QSharedPointer<Version> m_versionNumber = QSharedPointer<Version>();
|
||||
QString m_versionNumber;
|
||||
QString m_changelog;
|
||||
QString m_targetAbi;
|
||||
QString m_sourceUrl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue