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.
Retrieve a list of validations for a given document.
A document in NLdoc JSON schema format
A document in NLdoc JSON schema format
{- "id": "66edd412-b59e-4084-af46-ee8881850c90",
- "children": [
- {
- "id": "1a1dcd71-778a-492b-98cf-e5a8ed763905",
- "level": 1,
- "children": [
- {
- "id": "633bae3f-3f55-4ee0-8216-0eece81214cd",
- "text": "Document Heading 1"
}
]
}, - {
- "id": "d0ba9207-bce4-42b8-be0e-38d146bb661b",
- "children": [
- {
- "id": "270de2a7-dbe6-451a-a7db-25e122b34784",
- "text": "This is some text, "
}, - {
- "id": "fa1321bb-27e2-4906-9916-63bf16496ede",
- "text": "can be bold, ",
- "styling": [
- "bold"
]
}, - {
- "id": "886a2f40-6b1c-4661-a53c-87ec2ee4ef25",
- "text": "can be italic, ",
- "styling": [
- "italic"
]
}, - {
- "id": "3b5d5a4d-6c2f-4703-9871-10eca1186a6c",
- "text": "or both.",
- "styling": [
- "bold",
- "italic"
]
}
]
}, - {
- "id": "df15da68-973a-42a5-95fc-6489b8825226",
- "caption": [
- {
- "id": "a2deb31c-981b-4249-bb19-4fc2d474aef5",
- "text": "The cat loves the hamburger! Made by "
}, - {
- "id": "8839d07b-5e71-4cc3-bc04-c4b0912ea841",
- "text": "Creative Fabrica",
- "styling": [
- "italic"
]
}, - {
- "id": "76f87346-c1c3-435d-9e73-c8da599a8ed2",
- "text": " "
}, - {
- "id": "eb697d13-7ff7-44aa-b81d-10a9bc8e18fa",
- "text": "(see source)",
- "styling": [
- "superscript"
], - "purpose": "Visit the source of the image."
}, - {
- "id": "76f87346-c1c3-435d-9e73-c8da599a8ed2",
- "text": "."
}
], - "alternativeText": "A fat, white/brown cat with dark brown stripes eating a hamburger with cheese, lettuce, and tomato.",
- "descriptors": [
- {
- "value": {
- "@type": "Organization",
- "name": "Creative Fabrica",
}
}
]
}
], - "descriptors": [
- {
- "value": {
- "@type": "Person",
- "name": "John Doe",
- "email": "mailto:john.doe@gmail.com",
}
}
]
}{- "data": [
- {
- "resourceId": "d8c8fd4e-8036-472b-acb9-5797d44af08b",
- "severity": "error",
- "rulesetVersion": "4.9",
- "rule": "area-alt"
}
]
}| 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.
|
| 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. |
{- "resourceId": "d8c8fd4e-8036-472b-acb9-5797d44af08b",
- "severity": "error",
- "rulesetVersion": "4.9",
- "rule": "area-alt"
}| code required | integer Error code. |
| message required | string Description of the error that occurred. |
{- "code": 500,
- "message": "some error message"
}Identifier of the object
"550e8400-e29b-41d4-a716-446655440000"The severity of the validation finding.
"error"