This repository was archived by the owner on Aug 9, 2022. It is now read-only.

Description
https://github.com/GSA/code-gov-web/blob/master/src/assets/schemas/2.0.0.json#L243 has comments of "in YYYY-MM-DD or ISO 8601 format" for the dates. Is the intent to allow both date and date time formats or just a date format? The JSON Schema spec at http://json-schema.org/latest/json-schema-validation.html#rfc.section.7.3.1 shows "date" as being the same thing as "full-date" (date is same thing as full-date according to https://tools.ietf.org/html/rfc3339#section-5.6 ). Neither includes time. The current "date" value specified in the code.gov schema means just a date without time which explains why I'm getting errors with the library I'm using (https://github.com/JamesNK/Newtonsoft.Json.Schema/).
I'm taking dates from GitHub API calls and assigning them to certain code.gov schema fields but the schema isn't validating. Seems like the GitHub API uses the equivalent to date-time as far JSON Schema spec and RFC3339 is concerned.
Fix would be to either change code.gov schema to use date-time or I'd change my code to output a date string that's valid with what's currently in the schema (date). Former would probably be too big of a change than the later, but just wanted to ask what the intent was (date versus date-time). Seems like the intent is that code.gov schema wants date without time.