Skip to content

Commit

Permalink
Make enums in Statusbericht optional (#562)
Browse files Browse the repository at this point in the history
* Make enums in Statusbericht optional

* Remove from exception-list
  • Loading branch information
JoschaMetze authored Oct 28, 2024
1 parent 589c3a8 commit 297dd74
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion BO4E/BO/Statusbericht.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class Statusbericht : BusinessObject
[JsonPropertyName("status")]
[JsonPropertyOrder(10)]
[ProtoMember(1)]
public BO4E.ENUM.BerichtStatus Status { get; set; }
public BO4E.ENUM.BerichtStatus? Status { get; set; }

/// <summary>
/// Das geprüfte Dokument, z.B. die Referenz auf die EDIFACT-Nachricht die geprüft / beanstandet wurde
Expand Down
2 changes: 1 addition & 1 deletion BO4E/COM/Fehler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class Fehler : COM
[JsonProperty(PropertyName = "typ")]
[JsonPropertyName("typ")]
[ProtoMember(1)]
public BO4E.ENUM.FehlerTyp Typ { get; set; }
public BO4E.ENUM.FehlerTyp? Typ { get; set; }

/// <summary>
/// Fehlerdetails
Expand Down
2 changes: 1 addition & 1 deletion BO4E/COM/FehlerDetail.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class FehlerDetail : COM
[JsonPropertyName("code")]
[JsonPropertyOrder(10)]
[ProtoMember(1)]
public BO4E.ENUM.FehlerCode Code { get; set; }
public BO4E.ENUM.FehlerCode? Code { get; set; }

/// <summary>Eine Beschreibung des Fehlers.</summary>
[JsonProperty(PropertyName = "beschreibung", Order = 11)]
Expand Down
3 changes: 0 additions & 3 deletions BO4ETestProject/TestBOCOMDesign.cs
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,6 @@ public void NullableDefaultEnums()
"BO4E.COM.Energiemix->Energiemixnummer",
"BO4E.COM.Energiemix->Energieart",
"BO4E.COM.Energiemix->Gueltigkeitsjahr",
"BO4E.COM.Fehler->Typ",
"BO4E.COM.FehlerDetail->Code",
"BO4E.COM.Geraeteeigenschaften->Geraetetyp",
"BO4E.COM.Handelsunstimmigkeitsbegruendung->Grund",
"BO4E.COM.Konzessionsabgabe->Satz",
Expand Down Expand Up @@ -309,7 +307,6 @@ public void NullableDefaultEnums()
"BO4E.BO.Rechnung->Rechnungsstyp",
"BO4E.BO.Reklamation->LokationsTyp",
"BO4E.BO.Reklamation->Reklamationsgrund",
"BO4E.BO.Statusbericht->Status",
"BO4E.BO.Tranche->Sparte",
"BO4E.BO.Vertrag->Sparte",
"BO4E.BO.Wechsel->Sparte",
Expand Down

0 comments on commit 297dd74

Please sign in to comment.