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
|
@ -38,6 +38,7 @@
|
|||
#include <QStringList>
|
||||
#include <optional>
|
||||
|
||||
#include "JellyfinQt/dto/collectiontypeoptions.h"
|
||||
#include "JellyfinQt/dto/libraryoptions.h"
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
|
@ -51,7 +52,8 @@ namespace DTO {
|
|||
|
||||
class VirtualFolderInfo {
|
||||
public:
|
||||
VirtualFolderInfo(
|
||||
VirtualFolderInfo(
|
||||
CollectionTypeOptions collectionType,
|
||||
QSharedPointer<LibraryOptions> libraryOptions
|
||||
);
|
||||
|
||||
|
@ -89,16 +91,10 @@ public:
|
|||
bool locationsNull() const;
|
||||
void setLocationsNull();
|
||||
|
||||
/**
|
||||
* @brief Gets or sets the type of the collection.
|
||||
*/
|
||||
QString collectionType() const;
|
||||
/**
|
||||
* @brief Gets or sets the type of the collection.
|
||||
*/
|
||||
void setCollectionType(QString newCollectionType);
|
||||
bool collectionTypeNull() const;
|
||||
void setCollectionTypeNull();
|
||||
|
||||
CollectionTypeOptions collectionType() const;
|
||||
|
||||
void setCollectionType(CollectionTypeOptions newCollectionType);
|
||||
|
||||
|
||||
QSharedPointer<LibraryOptions> libraryOptions() const;
|
||||
|
@ -145,7 +141,7 @@ public:
|
|||
protected:
|
||||
QString m_name;
|
||||
QStringList m_locations;
|
||||
QString m_collectionType;
|
||||
CollectionTypeOptions m_collectionType;
|
||||
QSharedPointer<LibraryOptions> m_libraryOptions = QSharedPointer<LibraryOptions>();
|
||||
QString m_itemId;
|
||||
QString m_primaryImageItemId;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue