Skip to content

Commit

Permalink
Merge pull request #16 from ibi-group/release/4.2.0
Browse files Browse the repository at this point in the history
Merge release/4.2.0 branch to develop after merge to main
  • Loading branch information
j-d-b committed Feb 15, 2024
2 parents 2287687 + bcec5f5 commit bb60ae0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# IBI WZDx .NET Library
# WZDx .NET Library

This repository contains the source code for IBI Group's [.NET 6.0](https://docs.microsoft.com/en-us/dotnet/core/whats-new/dotnet-6) [WZDx (Work Zone Data Exchange)](https://github.com/usdot-jpo-ode/wzdx) class library, `IBI.WZDx`.

Expand All @@ -14,7 +14,7 @@ The library provides the following functionality:

### WZDx Version Support

WZDx versions 4.0, 4.1 & 4.2 are supported; the [WzdxSerializer](./src/IBI.WZDx/Serialization/WzdxSerializer.cs) defaults to outputting v4.2 (latest WZDx).
WZDx versions 4.0, 4.1, and 4.2 are supported; the [WzdxSerializer](./src/IBI.WZDx/Serialization/WzdxSerializer.cs) defaults to outputting v4.2 (latest WZDx).

[Detour road events](https://github.com/usdot-jpo-ode/wzdx/blob/main/spec-content/objects/DetourRoadEvent.md) are not supported. When provided with a Work Zone Feed that includes detour road events, the WzdxSerializer.DeserializeFeed method will deserialize the detour events into a [RoadEventFeature](./src/IBI.WZDx/Models/RoadEvents/RoadEventFeature.cs) with `Properties` as `null`.

Expand Down Expand Up @@ -75,4 +75,4 @@ This solution includes a [IBI.WZDx.UnitTests](/tests/IBI.WZDx.UnitTests/) Xunit

```
dotnet test
```
```
7 changes: 4 additions & 3 deletions tests/IBI.WZDx.UnitTests/WzdxSerializerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -810,15 +810,16 @@ string expectedFeedJson
ImpactedCdsCurbZones: new CdsCurbZonesReference[]
{
new CdsCurbZonesReference(
CdsCurbZoneIds: new string[] {"Zone Id 1", "Zone Id 2"},
CdsCurbZoneIds: new string[] { "Zone Id 1", "Zone Id 2" },
CdsCurbsApiUrl: "API Url"
)
},
WorkZoneType: WorkZoneType.Static
),
Geometry: new RoadEventFeatureGeometry(
Type: RoadEventFeatureGeometryType.LineString,
Coordinates: new double[][] {
Coordinates: new double[][]
{
new double[]
{
-93.77668405099996,
Expand Down Expand Up @@ -1908,4 +1909,4 @@ private static void DeserializeFeed_JsonNotValid_ThrowsJsonException<TWzdxFeed>(

Assert.Throws<JsonException>(action);
}
}
}

0 comments on commit bb60ae0

Please sign in to comment.