mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2025-09-06 18:32:45 +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
f71c7a991b
commit
9e1a20cd3a
504 changed files with 62190 additions and 41202 deletions
|
@ -34,8 +34,12 @@ namespace DTO {
|
|||
|
||||
FileSystemEntryInfo::FileSystemEntryInfo() {}
|
||||
FileSystemEntryInfo::FileSystemEntryInfo (
|
||||
QString name,
|
||||
QString path,
|
||||
FileSystemEntryType type
|
||||
) :
|
||||
m_name(name),
|
||||
m_path(path),
|
||||
m_type(type) { }
|
||||
|
||||
|
||||
|
@ -70,16 +74,8 @@ void FileSystemEntryInfo::setFromJson(QJsonObject source) {
|
|||
QJsonObject FileSystemEntryInfo::toJson() const {
|
||||
QJsonObject result;
|
||||
|
||||
|
||||
if (!(m_name.isNull())) {
|
||||
result["Name"] = Jellyfin::Support::toJsonValue<QString>(m_name);
|
||||
}
|
||||
|
||||
|
||||
if (!(m_path.isNull())) {
|
||||
result["Path"] = Jellyfin::Support::toJsonValue<QString>(m_path);
|
||||
}
|
||||
|
||||
result["Name"] = Jellyfin::Support::toJsonValue<QString>(m_name);
|
||||
result["Path"] = Jellyfin::Support::toJsonValue<QString>(m_path);
|
||||
result["Type"] = Jellyfin::Support::toJsonValue<FileSystemEntryType>(m_type);
|
||||
return result;
|
||||
}
|
||||
|
@ -89,27 +85,13 @@ QString FileSystemEntryInfo::name() const { return m_name; }
|
|||
void FileSystemEntryInfo::setName(QString newName) {
|
||||
m_name = newName;
|
||||
}
|
||||
bool FileSystemEntryInfo::nameNull() const {
|
||||
return m_name.isNull();
|
||||
}
|
||||
|
||||
void FileSystemEntryInfo::setNameNull() {
|
||||
m_name.clear();
|
||||
|
||||
}
|
||||
QString FileSystemEntryInfo::path() const { return m_path; }
|
||||
|
||||
void FileSystemEntryInfo::setPath(QString newPath) {
|
||||
m_path = newPath;
|
||||
}
|
||||
bool FileSystemEntryInfo::pathNull() const {
|
||||
return m_path.isNull();
|
||||
}
|
||||
|
||||
void FileSystemEntryInfo::setPathNull() {
|
||||
m_path.clear();
|
||||
|
||||
}
|
||||
FileSystemEntryType FileSystemEntryInfo::type() const { return m_type; }
|
||||
|
||||
void FileSystemEntryInfo::setType(FileSystemEntryType newType) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue