cds-hooks / sandbox

CDS Hooks Sandbox
http://sandbox.cds-hooks.org
Apache License 2.0
34 stars 32 forks source link

Validate CDS card data #56

Open kpshek opened 6 years ago

kpshek commented 6 years ago

There is no validation of CDS cards today. For instance, cards can have summary fields with > 140 characters and the card is still rendered. We should flag these cards for errors and/or not render them so that the CDS Service developer knows there is an issue that needs to be corrected.

mattberther commented 6 years ago

Hi @kpshek, I think https://github.com/cds-hooks/cds-validator could help with this. I went through several months ago and updated to 1.0 spec. However, there are items like the summary fields > 140 characters that are not currently being validated.

Can you point me to a complete specification including all properties and potential validations, and Id be happy to update the cds-validator project so we could use it in the sandbox for CDS card validation?

Thanks!