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
Motivation
Delta does not provide any endpoint that would allow users to perform dry-runs on resources when this can be useful to test and debug without performing any writes to the primary store.
As the lower layers of Delta already allow to perform dry-runs, we want to make this available with a new endpoint which would allow users to test resources with and without a schema validation
Acceptance criteria
When a user calls this endpoint, no write operation to the primary store is done
The user must provide a valid resource payload following the same rules as the create and update operations of a resource
Optionally the user can also provide a schema to validate this resource with:
A reference to an existing schema (with an optional revision/tag)
The payload of a new schema
When the resource is valid, then it is returned to the user (the same as the result of the fetch operation)
When the resource can't be validated with the provided schema then an error containing the resulting resource and the validation report is returned to the user
When the resource is not valid for any other reason (the resource payload is invalid, the provided schema reference does not exist), an appropriate message is returned to the user
API changes
An example of requests would be: With no validation
@crisely09 It can be something else, it is just that whenever something is not validated today, its schema is https://bluebrain.github.io/nexus/schemas/unconstrained.json so I wanted to reuse the same vocabulary
Motivation
Delta does not provide any endpoint that would allow users to perform dry-runs on resources when this can be useful to test and debug without performing any writes to the primary store.
As the lower layers of Delta already allow to perform dry-runs, we want to make this available with a new endpoint which would allow users to test resources with and without a schema validation
Acceptance criteria
API changes
An example of requests would be:
With no validation
With validation with a new schema
With validation with a new schema
The text was updated successfully, but these errors were encountered: