Skip to content

Commit

Permalink
feat: Add ExtendedStatus content type (#589)
Browse files Browse the repository at this point in the history
  • Loading branch information
oskogstad authored Apr 4, 2024
1 parent 66d12e5 commit a9f10b0
Show file tree
Hide file tree
Showing 5 changed files with 1,264 additions and 3 deletions.
6 changes: 4 additions & 2 deletions docs/swagger/V1/swagger.verified.json
Original file line number Diff line number Diff line change
Expand Up @@ -2200,13 +2200,15 @@
"Title",
"SenderName",
"Summary",
"AdditionalInfo"
"AdditionalInfo",
"ExtendedStatus"
],
"enum": [
"Title",
"SenderName",
"Summary",
"AdditionalInfo"
"AdditionalInfo",
"ExtendedStatus"
]
},
"LocalizationDto": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ public enum Values
Title = 1,
SenderName = 2,
Summary = 3,
AdditionalInfo = 4
AdditionalInfo = 4,
ExtendedStatus = 5
}

public bool Required { get; private init; }
Expand Down Expand Up @@ -49,6 +50,13 @@ public enum Values
MaxLength = 1023,
OutputInList = false
},
Values.ExtendedStatus => new(id)
{
Required = false,
RenderAsHtml = false,
MaxLength = 20,
OutputInList = true
},
_ => throw new ArgumentOutOfRangeException(nameof(id), id, null)
};

Expand Down
Loading

0 comments on commit a9f10b0

Please sign in to comment.