Asynchronous resource validation
Use RPC to run a validation operation to check a resource conformance
Asynchronous Batch Validation draft
draft
This is a draft API. We appreciate your feedback and ideas in this discussion
It may happen that you updated your profiles when data is already in your database or you want to do efficiently load a batch of data and validate it later. API consists of 3 procedures and a couple of resources:
aidbox.validation/batch-validation - run validation
aidbox.validation/batch-validation-result - inspect results (useful for async mode)
aidbox.validation/clear-batch-validation - clear validation results
Prepare data
To illustrate let's create some invalid data in Aidbox:
Break data from DB Console:
aidbox.validation/batch-validation
You can validate your existing data with our new rpc aidbox.validation/batch-validation
:
aidbox.validation/batch-validation-result
If you run validation in async mode, it will respond instantly and run validation in the background. You can get validation results with RPC aidbox.validation/batch-validation-result
aidbox.validation/clear-batch-validation
When you do not need results of this validation you can clean up resources with:
BatchValidationRun & BatchValidationError Resources
When you run validation operation aidbox internally creates resource BatchValidationRun and put errors of validation in BatchValidationError. You can access these resources through standard CRUD/Search API
If you restart Aidbox you have to start validation over
Last updated