Skip to content

3623 validation of data

Created by: chenejac

VIVO GitHub issue: 3623

What does this pull request do?

Validate content and type of parameters including checking object structures defined in RDF presentation of a dynamic action. Loaded operation data will be validated over structure defined in required Parameters and assigned parameter types.

How should this be tested?

If you try to change the structure of the input or the result, validation will fail. Moreover, if you change type, i.e. provide a string instead of an integer for a limit parameter (https://github.com/chenejac/Vitro/blob/9fa3007d915bf4d337f2ebc5e36b9b6c284548c5/api/src/test/resources/dynapi/mock/rest/request/body/post/test_collection_resource.json#L2), validation will fail and SPARQL query wouldn't try to be executed.

Interested parties

Tag (@ mention) interested parties or, if unsure, @VIVO-project/vivo-committers

Merge request reports