adewg / ICAR

Standard messages and specifications for animal data exchange in livestock.
https://icar.org/
Apache License 2.0
49 stars 26 forks source link

Birth Period in icarInventoryClassificationType doesn't validate as per description #335

Closed cookeac closed 2 years ago

cookeac commented 2 years ago

The birthPeriod in icarInventoryClassificationType was intended to represent an approximate birth period for a number of animals with an ISO8601 interval (effectively a range between two dates, but there are extensions that allow year or year and month). I had originally drafted this as an icarDateType which is just string format date. However, most validators only accept RFC-3339 dates in this context, and not intervals.

I propose to make this a string, with a pattern that reflects the description.

cookeac commented 2 years ago

Resolved by #334 (hopefully)