-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Milestone
Description
SOLR docs are never deserialized and thus can't be validated. However, the mongo client gives us mongo documents as Javascript objects, which are definitely validate-able.
What is the most appropriate way to handle validation, given that the REST service returns a simple array of documents?
- Refactor response to an object with, e.g.
docsandmetadatasubdocuments (withdocscontaining the array currently returned, andmetadataincluding the validation information)? - Modify each document to add
validationfield? (This is probably not a good idea.)
Reactions are currently unavailable