OpenDataServices / fireproofbox-standard

0 stars 0 forks source link

Date is currently a free text string - can we add stricter validation? #1

Closed odscjames closed 6 years ago

BibianaC commented 6 years ago

@odscjames It might be like this: "date_added": { "type": "string", "format": "date" }

odscjames commented 6 years ago

@BibianaC https://www.jsonschemavalidator.net/ is the web site I was using earlier - if you want to play around and try it?

BibianaC commented 6 years ago

@odscjames I have checked it and the validation works well. Something that I have noticed now is that now as required are all items. What happens if just a few of them are required?

odscjames commented 6 years ago

Merged.

Something that I have noticed now is that now as required are all items. What happens if just a few of them are required?

I'm not sure I follow this, sorry?

BibianaC commented 6 years ago

@odscjames nothing nothing, I have just realised that there are two required fields.