This has created problems in the MySQL database schema building - in tries to make a "date" column, and you can't put a year only in a mysql date column.
I suspect it would create other problems in validators that use this directly too.
Should it just be an integer, with some rought min & max constraints?
https://www.w3.org/TR/tabular-data-model/#formats-for-dates-and-times lists formats that implementers must manage. Crucially, they are all complete formats - ie all components are represented. There is no support for having a year only.
This has created problems in the MySQL database schema building - in tries to make a "date" column, and you can't put a year only in a mysql date column.
I suspect it would create other problems in validators that use this directly too.
Should it just be an integer, with some rought min & max constraints?
(Found when doing https://github.com/openreferral/specification/pull/261 )