Skip to content

Commit

Permalink
Update sources/platform/actors/development/actor_definition/dataset_s…
Browse files Browse the repository at this point in the history
…chema/validation.md

Co-authored-by: Michał Olender <[email protected]>
  • Loading branch information
katacek and TC-MO authored Dec 5, 2024
1 parent df06398 commit 6d26ea0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Dataset schema needs to be a valid JSON schema draft-07, so the `$schema` line i

When you define a schema of your default dataset, the schema is then always used when you insert data into the dataset to perform validation (we use [AJV](https://ajv.js.org/)).

If the validation succeeds, nothing changes from the current behavior, data is stored and an empty response with status code 201 is returned.
If the validation succeeds, nothing changes from the current behavior, data is stored and an empty response with status code `201` is returned.

**If the data you attempt to store in the dataset is invalid** (meaning any of the items received by the API fails the validation), **the whole request is discarded** and the API will return a response with status code 400 and the following JSON response:

Expand Down

0 comments on commit 6d26ea0

Please sign in to comment.