mirror of
https://github.com/estv-admin/efde-md-json-schema.git
synced 2026-08-25 21:24:25 +00:00
JSON schemas for the efde MD API | Read-only mirror of https://github.com/estv-admin/efde-md-json-schema — Bundesamt für Informatik und Telekommunikation. Issues & pull requests at the source.
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| add_claim_document_output_schema.json | ||
| claim_questionary_sequence_types_schema.json | ||
| claim_status_query_input_schema.json | ||
| claim_status_query_output_schema.json | ||
| claim_types_schema.json | ||
| common_types_schema.json | ||
| create_claim_input_schema.json | ||
| create_claim_output_schema.json | ||
| create_partner_input_schema.json | ||
| create_partner_output_schema.json | ||
| delete_claim_output_schema.json | ||
| download_decision_letter_output_schema.json | ||
| download_stamp_sheet_output_schema.json | ||
| error_types_schema.json | ||
| questionary_types_schema.json | ||
| README.md | ||
| token_renewal_output_schema.json | ||
| update_partner_input_schema.json | ||
| update_partner_output_schema.json | ||
efde-md-json-schema
Install go library and cli to validate json
go get github.com/santhosh-tekuri/jsonschema
Add the following content to a local file called 'create_claim_output_error.json'
{
"success": false,
"error": [
{
"errorCode": "M0016",
"errorDescription": "Claim not valid"
},
{
"errorCode": "E0004",
"errorReferenceID": "B491C9A9-6C16-DA67-5DAB-F8FFAD6CF52C",
"errorDescription": "Invalid DocumentID. No document found."
},
{
"errorCode": "E0004",
"errorReferenceID": "B491C9A9-6C16-DA67-5DAB-F8FFAD6CF52C",
"errorDescription": "Invalid DocumentID. No document found."
}
]
}
Run the cli 'jv' to validate the above json data
jv https://raw.githubusercontent.com/estv-admin/efde-md-json-schema/master/create_claim_output_schema.json create_claim_output_error.json