Skip to content

Commit

Permalink
fix(bpdm): allow null values for geographic coordinate altitude (#882)
Browse files Browse the repository at this point in the history
* fix(bpdm): allow null values for geographic coordinate altitude

Null altitude breaks onboarding.

Refs: #881
  • Loading branch information
typecastcloud authored Aug 1, 2024
1 parent cb0715a commit 7825b1b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/externalsystems/Bpdm.Library/Models/BpdmAddressDto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,5 @@ BpdmDataDto Language
public record BpdmGeographicCoordinatesDto(
double Longitude,
double Latitude,
double Altitude
double? Altitude
);
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ string Type
public record BpdmGeographicCoordinates(
double Longitude,
double Latitude,
double Altitude
double? Altitude
);

public record BpdmPutStreet(
Expand Down
2 changes: 1 addition & 1 deletion tests/externalsystems/Bpdm.Library/BPNAccessTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public async Task FetchLegalEntityByBpn_Success_ReturnsExpected()
""geographicCoordinates"": {
""longitude"": 0.0,
""latitude"": 0.0,
""altitude"": 0.0
""altitude"": null
},
""country"": {
""technicalKey"": ""DE"",
Expand Down
2 changes: 1 addition & 1 deletion tests/externalsystems/Bpdm.Library/BpdmServiceTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ public async Task FetchInputLegalEntity_WithValidResult_ReturnsExpected()
""geographicCoordinates"": {
""longitude"": 0,
""latitude"": 0,
""altitude"": 0
""altitude"": null
},
""country"": ""UNDEFINED"",
""administrativeAreaLevel1"": ""string"",
Expand Down

0 comments on commit 7825b1b

Please sign in to comment.