metadatacenter / cedar-project

Build project for all CEDAR Java repositories
https://github.com/metadatacenter/cedar-docs/wiki
Other
12 stars 1 forks source link

3rd party instance validation framework #353

Open martinjoconnor opened 7 years ago

martinjoconnor commented 7 years ago

Allow template designer to specify URI of REST API to validate instance. Presence of validation URI will indicate that front end should present a validate button. Pressing this button invokes the specified URI with the associated template instance as payload. Based on validation response, front end will indicate successful validation or list of errors and warnings.

Response could look something like:

{
  "validates": true,
  "errors": [ "message1", "message2" ],
  "warnings":  [ "message1", "message2" ]
}

Validation

graybeal commented 7 years ago

I have seen it said, but do not know if it is worth doing here (either optionally or always): Automated processing of errors and warnings is facilitated if they all come with an identifier.

willrett commented 7 years ago

LINCS wants to demo feature on May 12th