<commit_before>= Validation results
:docinfo: shared
:toc: auto

== Overview

Validation results provide feedback on the documents you have submitted. They are updated each time you create or change
a document. The results take a little time to generate, so we provide a status to inform you if the validation process
has finished.

You cannot make changes to validation results, they are only changed when you update the documents in the submission.

== Fetch validation results for a single document

You can get validation results for any submittable, by following the `validationResult` link:

=== Request
include::{snippets}/get-validation-result/http-request.adoc[]

=== Response
include::{snippets}/get-validation-result/http-response.adoc[]

== Fetch validation results for all documents in a submission

You can get all the validation results for a submission, by following the `validationResults` from the submission.

<commit_msg>replace erroneous use of http-request with curl-request<commit_after>= Validation results
:docinfo: shared
:toc: auto

== Overview

Validation results provide feedback on the documents you have submitted. They are updated each time you create or change
a document. The results take a little time to generate, so we provide a status to inform you if the validation process
has finished.

You cannot make changes to validation results, they are only changed when you update the documents in the submission.

== Fetch validation results for a single document

You can get validation results for any submittable, by following the `validationResult` link:

=== Request
include::{snippets}/get-validation-result/curl-request.adoc[]

=== Response
include::{snippets}/get-validation-result/http-response.adoc[]

== Fetch validation results for all documents in a submission

You can get all the validation results for a submission, by following the `validationResults` from the submission.


{'fraction_non_alphanumeric': 0.061330561330561334, 'fraction_numerical': 0.0, 'mean_word_length': 5.1501597444089455, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6029407', 'n_tokens_mistral': 458, 'n_tokens_neox': 443, 'n_words': 248}