sandbox icon indicating copy to clipboard operation
sandbox copied to clipboard

Validate CDS card data

Open kpshek opened this issue 7 years ago • 1 comments

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.

kpshek avatar Jul 27 '18 15:07 kpshek

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!

mattberther avatar Aug 09 '18 01:08 mattberther