Skip to content

Commit a9f10b0

Browse files
authored
feat: Add ExtendedStatus content type (#589)
#568
1 parent 66d12e5 commit a9f10b0

File tree

5 files changed

+1264
-3
lines changed

5 files changed

+1264
-3
lines changed

docs/swagger/V1/swagger.verified.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -2200,13 +2200,15 @@
22002200
"Title",
22012201
"SenderName",
22022202
"Summary",
2203-
"AdditionalInfo"
2203+
"AdditionalInfo",
2204+
"ExtendedStatus"
22042205
],
22052206
"enum": [
22062207
"Title",
22072208
"SenderName",
22082209
"Summary",
2209-
"AdditionalInfo"
2210+
"AdditionalInfo",
2211+
"ExtendedStatus"
22102212
]
22112213
},
22122214
"LocalizationDto": {

src/Digdir.Domain.Dialogporten.Domain/Dialogs/Entities/Content/DialogContentType.cs

+9-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ public enum Values
1111
Title = 1,
1212
SenderName = 2,
1313
Summary = 3,
14-
AdditionalInfo = 4
14+
AdditionalInfo = 4,
15+
ExtendedStatus = 5
1516
}
1617

1718
public bool Required { get; private init; }
@@ -49,6 +50,13 @@ public enum Values
4950
MaxLength = 1023,
5051
OutputInList = false
5152
},
53+
Values.ExtendedStatus => new(id)
54+
{
55+
Required = false,
56+
RenderAsHtml = false,
57+
MaxLength = 20,
58+
OutputInList = true
59+
},
5260
_ => throw new ArgumentOutOfRangeException(nameof(id), id, null)
5361
};
5462

0 commit comments

Comments
 (0)