-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement IInstanceDataMutator.AbandonAllChanges (#870)
* Modify Delete data element to return patch result and validations * Implement IInstanceDataMutator.AbandonAllChanges This returns validation issues in a ProblemDetails object with status 400 BadRequest status
- Loading branch information
Showing
15 changed files
with
310 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using System.Text.Json.Serialization; | ||
using Altinn.App.Core.Models.Validation; | ||
using Altinn.Platform.Storage.Interface.Models; | ||
|
||
namespace Altinn.App.Api.Models; | ||
|
||
/// <summary> | ||
/// Response object for POST to /org/app/instances/{instanceOwnerPartyId:int}/{instanceGuid:guid}/data/{dataType} | ||
/// </summary> | ||
public class DataDeleteResponse | ||
{ | ||
/// <summary> | ||
/// The instance with updated data | ||
/// </summary> | ||
[JsonPropertyName("instance")] | ||
public required Instance Instance { get; init; } | ||
|
||
/// <summary> | ||
/// List of validation issues that reported to have relevant changes after a new data element was added | ||
/// </summary> | ||
[JsonPropertyName("validationIssues")] | ||
public required List<ValidationSourcePair> ValidationIssues { get; init; } | ||
|
||
/// <summary> | ||
/// List of updated DataModels caused by dataProcessing | ||
/// </summary> | ||
[JsonPropertyName("newDataModels")] | ||
public required List<DataModelPairResponse> NewDataModels { get; init; } | ||
} |
Oops, something went wrong.