Get information about which specifications can be used to validate
header Parameters
Access-Token | string |
Responses
Response samples
- 200
Content type
application/json
{- "maxUploadSize": "256M",
- "projects": [
- {
- "id": "string",
- "name": "string",
- "seqNr": 0,
- "specifications": [
- {
- "id": "string",
- "label": "string",
- "seqNr": 0,
- "versions": [
- {
- "id": "string",
- "versionId": "string",
- "versionStatus": "string",
- "syntaxBindings": [
- {
- "id": "string",
- "name": "XML",
- "enabled": true,
- "examples": [
- { }
], - "schema": "string",
- "schematron": [
- null
], - "validateBRs": true,
- "validateCodelists": true,
- "validateSchema": true
}
]
}
], - "project": "string"
}
]
}
]
}
Validate a message according to message specifications
path Parameters
syntaxBindingId required | string Identifier of the syntax binding |
query Parameters
skipSchematronIds | string Example: skipSchematronIds=123,456,789 Comma separated list of schematron specification identifiers that should not be included in the validation |
header Parameters
Access-Token | string |
Request Body schema: application/xml
object
Responses
Request samples
- Payload
Content type
application/xml
<xml></xml>
Response samples
- 200
Content type
application/json
{- "xml_valid": true,
- "schema_valid": true,
- "br_valid": true,
- "xml_errors": {
- "error": [
- {
- "code": 0,
- "column": 2,
- "level": 0,
- "line": 17,
- "lineTxt": "string",
- "message": "ParseError at [row,col]:[17,2]\nMessage: The end-tag for element type \"PriceCatalogueNumber\" must end with a '>' delimiter."
}
], - "warning": [
- {
- "code": 0,
- "column": 2,
- "level": 0,
- "line": 17,
- "lineTxt": "string",
- "message": "ParseError at [row,col]:[17,2]\nMessage: The end-tag for element type \"PriceCatalogueNumber\" must end with a '>' delimiter."
}
]
}, - "br_result": {
- "error": [
- {
- "context": "string",
- "count": 0,
- "ruleId": "string",
- "violations": [
- {
- "flag": "string",
- "fpi": "string",
- "lineNr": 0,
- "location": "string",
- "message": "string",
- "see": "string",
- "test": "string",
- "xml": "string"
}
]
}
], - "warning": [
- {
- "context": "string",
- "count": 0,
- "ruleId": "string",
- "violations": [
- {
- "flag": "string",
- "fpi": "string",
- "lineNr": 0,
- "location": "string",
- "message": "string",
- "see": "string",
- "test": "string",
- "xml": "string"
}
]
}
], - "notice": [
- {
- "context": "string",
- "count": 0,
- "ruleId": "string",
- "violations": [
- {
- "flag": "string",
- "fpi": "string",
- "lineNr": 0,
- "location": "string",
- "message": "string",
- "see": "string",
- "test": "string",
- "xml": "string"
}
]
}
], - "info": [
- {
- "context": "string",
- "count": 0,
- "ruleId": "string",
- "violations": [
- {
- "flag": "string",
- "fpi": "string",
- "lineNr": 0,
- "location": "string",
- "message": "string",
- "see": "string",
- "test": "string",
- "xml": "string"
}
]
}
], - "debug": [
- {
- "context": "string",
- "count": 0,
- "ruleId": "string",
- "violations": [
- {
- "flag": "string",
- "fpi": "string",
- "lineNr": 0,
- "location": "string",
- "message": "string",
- "see": "string",
- "test": "string",
- "xml": "string"
}
]
}
]
}, - "svrl_reports": [
- "<?xml version=\"1.0\"?><svrl:schematron-output></svrl:schematron-output>"
]
}