NLdoc Validation API (3.0.135)

Download OpenAPI specification:

This specification provides a standardized way to represent validation messages and notifications. The resources defined in this specification can be used to annotate resources present in the NLdoc Document Specification.

Validation

Validate a document.

Retrieve a list of validations for a given document.

Request Body schema: application/json
required

A document in NLdoc JSON schema format

any

Responses

Request samples

Content type
application/json

A document in NLdoc JSON schema format

{}

Response samples

Content type
application/json
{}

ValidationFinding — https://spec.validation.nldoc.nl/Resource/ValidationFinding

type
required
string <uri> (https://spec.validation.nldoc.nl/Property/Type)

URI type of the ValidationFinding resource.

Value: "https://spec.validation.nldoc.nl/Resource/ValidationFinding"
resourceId
required
string <uuid> (spec.validation.nldoc.nl.Property.Id) = 36 characters

Identifier of the object

severity
required
string (spec.validation.nldoc.nl.Property.Severity)
Enum: "error" "warning" "notice"

The severity of the validation finding.

error
The document is not accessible, as this finding prevents people with disabilities from accessing fundamental features or content. E.g. missing alt text on an image.
warning
The document is accessible, but this finding indicates a potential issue in the document's structure that the editor should review. E.g. bold text that might be a heading.
notice
The document is accessible, but the content could be improved. E.g. a word is not B1-level Dutch, or a link's purpose is not clear enough.
ruleset
required
string <uri> (Ruleset) [ 1 .. 1000 ] characters

URI of the ruleset that is being used.

rulesetVersion
required
string (Ruleset version) non-empty

Version of the ruleset that is being used.

rule
required
string (Rule) [ 1 .. 1000 ] characters

Rule ID of the rule that is being used.

{}

Error — https://spec.validation.nldoc.nl/Resource/Error

code
required
integer

Error code.

message
required
string

Description of the error that occurred.

{
  • "code": 500,
  • "message": "some error message"
}

Id — https://spec.validation.nldoc.nl/Property/Id

string <uuid> (https://spec.validation.nldoc.nl/Property/Id) = 36 characters

Identifier of the object

"550e8400-e29b-41d4-a716-446655440000"

Severity — https://spec.validation.nldoc.nl/Property/Severity

string (https://spec.validation.nldoc.nl/Property/Severity)
Enum: "error" "warning" "notice"

The severity of the validation finding.

error
The document is not accessible, as this finding prevents people with disabilities from accessing fundamental features or content. E.g. missing alt text on an image.
warning
The document is accessible, but this finding indicates a potential issue in the document's structure that the editor should review. E.g. bold text that might be a heading.
notice
The document is accessible, but the content could be improved. E.g. a word is not B1-level Dutch, or a link's purpose is not clear enough.
"error"