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
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. docs and metadata subdocuments (with docs containing the array currently returned, and metadata including the validation information)?
Modify each document to add validation field? (This is probably not a good idea.)
The text was updated successfully, but these errors were encountered:
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?
docs
andmetadata
subdocuments (withdocs
containing the array currently returned, andmetadata
including the validation information)?validation
field? (This is probably not a good idea.)The text was updated successfully, but these errors were encountered: