Skip to content

Commit

Permalink
Merge pull request #72 from opengisch/api_fix
Browse files Browse the repository at this point in the history
Fix field type incompatibility with the recent server changes
  • Loading branch information
suricactus authored Dec 14, 2020
2 parents 4edb958 + cb2b07b commit 4fcca7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/deltastatuslistmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ DeltaStatusListModel::DeltaStatusListModel( QJsonDocument deltasStatusList )
}

const QJsonObject deltaObject = delta.toObject();
const QStringList requiredKeys({"id", "deltafile_id", "created_at", "updated_at", "status", "output"});
const QStringList requiredKeys({"id", "deltafile_id", "created_at", "updated_at", "status"});
for ( const QString &requiredKey : requiredKeys )
{
if ( deltaObject.value( requiredKey ).isNull() || deltaObject.value( requiredKey ).isUndefined() )
{
mIsValid = false;
mErrorString = QStringLiteral( "Expected all array elements to be an object containing a key \"%1\", but the element at #%2 is not" ).arg( requiredKey, mDeltas.size() );
mErrorString = QStringLiteral( "Expected all array elements to be an object containing a key \"%1\", but the element at #%2 is not" ).arg( requiredKey ).arg( mDeltas.size() );
return;
}
}
Expand Down

0 comments on commit 4fcca7b

Please sign in to comment.