You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are adding a mechanism to validate that a property of an analysis, for example a donor ID, is registered in an external registry. This validation will be done during Analysis submission by making a web request to a configurable URL, and it will ensure that the value of a property is valid according to the external service.
External validation may be done to ensure that an ID is registered in another meta data service, or could be looking up a value in an external ontology, or any other validation logic that the external service chooses.
Ticket Details
A SONG administrator can add external validation rules to any dynamic schema. These rules specify a property in the dynamic schema that requires external validation, and the URL that will handle the validation request.
These rules are added to the options property in the request to the Dynamic Schema create and update endpoints. The property options.externalValidation will contain an array of objects that define these rules. Example options object with this property:
externalValidation property is optional. If no value is given, or the value is an empty array, then no external validation rules are recorded.
Every entry in the externalValidation array must be a JSON object with two properties: jsonPath, and url
jsonPath represents the path to the property that will be validated using an external service
this value must be a string, cannot be empty
the value in this string will be a path to a property in the dynamic schema, with properties separated by period . characters
the value received should be checked against the dynamic schema. If the property defined here is not found in the dynamic schema than the request to update or create the dynamic schema should be rejected
url is the http url that will be used to validate values for that property
we must validate that the URL is a properly formatted URL
The text was updated successfully, but these errors were encountered:
This ticket is contributing to the epic: #863
Summary of External Validation
We are adding a mechanism to validate that a property of an analysis, for example a donor ID, is registered in an external registry. This validation will be done during Analysis submission by making a web request to a configurable URL, and it will ensure that the value of a property is valid according to the external service.
External validation may be done to ensure that an ID is registered in another meta data service, or could be looking up a value in an external ontology, or any other validation logic that the external service chooses.
Ticket Details
A SONG administrator can add external validation rules to any dynamic schema. These rules specify a property in the dynamic schema that requires external validation, and the URL that will handle the validation request.
These rules are added to the
options
property in the request to the Dynamic Schema create and update endpoints. The propertyoptions.externalValidation
will contain an array of objects that define these rules. Example options object with this property:External Validation property validation rules
jsonPath
, andurl
jsonPath
represents the path to the property that will be validated using an external service.
charactersurl
is the http url that will be used to validate values for that propertyThe text was updated successfully, but these errors were encountered: