usdot-jpo-ode / wzdx

The Work Zone Data Exchange (WZDx) Specification aims to make harmonized work zone data provided by infrastructure owners and operators (IOOs) available for third party use, making travel on public roads safer and more efficient through ubiquitous access to data on work zone activity.
Creative Commons Zero v1.0 Universal
92 stars 62 forks source link

Require restriction type for a lane restriction #81

Closed j-d-b closed 4 years ago

j-d-b commented 4 years ago

Currently, none of the fields on lane_restriction entity that are present in the output data feed are required. That means it's possible for the lane_restrictions field on the lane object to contain an array of empty objects, that is

{
  "lanes": [
    {
      "lane_restrictions: [{},{}],
    }
  ]
}

Requiring restriction type on the lane_restriction entity would solve this issue and is a simple fix. I don't see a downside to having this required as a lane restriction is useless without the type.

Mahsa-Ettefagh commented 4 years ago

Comments received during the V3 Specification Update Subgroup meeting on 4/29/2020:

j-d-b commented 4 years ago

Added in #87