config/schemas/ccr_claim_schema.json
{
"$schema": "http://json-schema.org/draft-04/schema#",
"definitions": {},
"id": "https://claim-crown-court-defence.service.gov.uk/json_schemas/ccr_schema",
"additionalProperties": false,
"properties": {
"uuid": {
"id": "/properties/uuid",
"type": "string"
},
"actual_trial_Length": {
"id": "/properties/actual_trial_length",
"type": ["string","null"]
},
"trial_fixed_notice_at": {
"id": "/properties/trial_fixed_notice_at",
"type": ["string","null"]
},
"trial_fixed_at": {
"id": "/properties/trial_fixed_at",
"type": ["string","null"]
},
"trial_cracked_at": {
"id": "/properties/trial_cracked_at",
"type": ["string","null"]
},
"trial_cracked_at_third": {
"id": "/properties/trial_cracked_at_third",
"type": ["string","null"]
},
"retrial_reduction": {
"id": "/properties/retrial_reduction",
"type": "boolean"
},
"retrial_started_at": {
"id": "/properties/retrial_started_at",
"type": ["string","null"]
},
"retrial_actual_length": {
"id": "/properties/retrial_actual_length",
"type": ["string","null"]
},
"retrial_estimated_length": {
"id": "/properties/retrial_estimated_length",
"type": ["string","null"]
},
"last_submitted_at": {
"id": "/properties/last_submitted_at",
"type": ["string","null"]
},
"main_hearing_date": {
"id": "/properties/main_hearing_date",
"type": ["string","null"]
},
"additional_information": {
"id": "/properties/additional_information",
"type": ["string","null"]
},
"bills": {
"id": "/properties/bills",
"items": {
"id": "/properties/bills/items",
"additionalProperties": false,
"properties": {
"bill_type": {
"id": "/properties/bills/items/properties/bill_type",
"type": "string"
},
"bill_subtype": {
"id": "/properties/bills/items/properties/bill_subtype",
"type": "string"
},
"number_of_cases": {
"id": "/properties/bills/items/properties/number_of_cases",
"type": "string"
},
"case_numbers": {
"id": "/properties/bills/items/properties/case_numbers",
"type": ["string","null"]
},
"description": {
"id": "/properties/bills/items/properties/description",
"type": ["string", "null"]
},
"date_incurred": {
"id": "/properties/bills/items/properties/date_incurred",
"type": ["string", "null"]
},
"number_of_witnesses": {
"id": "/properties/bills/items/properties/number_of_witnesses",
"type": "string"
},
"number_of_defendants": {
"id": "/properties/bills/items/properties/number_of_defendants",
"type": "string"
},
"daily_attendances": {
"id": "/properties/bills/items/properties/daily_attendances",
"type": "string"
},
"ppe": {
"id": "/properties/bills/items/properties/ppe",
"type": "string"
},
"quantity": {
"id": "/properties/bills/items/properties/quantity",
"type": ["string","null"]
},
"rate": {
"id": "/properties/bills/items/properties/rate",
"type": ["string","null"]
},
"amount": {
"id": "/properties/bills/items/properties/amount",
"type": "string"
},
"warrant_issued_date": {
"id": "/properties/bills/items/properties/warrant_issued_date",
"type": ["string", "null"]
},
"dates_attended": {
"id": "/properties/bills/items/properties/dates_attended",
"items": {
"id": "/properties/bills/items/properties/dates_attended/items",
"additionalProperties": false,
"properties": {
"from": {
"id": "/properties/bills/items/properties/dates_attended/items/properties/from",
"type": ["string","null"]
},
"to": {
"id": "/properties/bills/items/properties/dates_attended/items/properties/to",
"type": ["string","null"]
}
},
"type": "object"
},
"type": "array"
},
"type": "array"
},
"type": "object"
},
"type": "array"
},
"case_number": {
"id": "/properties/case_number",
"type": "string"
},
"court": {
"id": "/properties/court",
"additionalProperties": false,
"properties": {
"code": {
"id": "/properties/court/properties/code",
"type": "string"
}
},
"type": "object"
},
"defendants": {
"id": "/properties/defendants",
"items": {
"id": "/properties/defendants/items",
"additionalProperties": false,
"properties": {
"main_defendant": {
"id": "/properties/defendants/items/properties/main_defendant",
"type": "boolean"
},
"first_name": {
"id": "/properties/defendants/items/properties/first_name",
"type": "string"
},
"last_name": {
"id": "/properties/defendants/items/properties/last_name",
"type": "string"
},
"date_of_birth": {
"id": "/properties/defendants/items/properties/date_of_birth",
"type": "string"
},
"representation_orders": {
"id": "/properties/defendants/items/properties/representation_orders",
"items": {
"id": "/properties/defendants/items/properties/representation_orders/items",
"additionalProperties": false,
"properties": {
"maat_reference": {
"id": "/properties/defendants/items/properties/representation_orders/items/properties/maat_reference",
"type": ["string","null"]
},
"representation_order_date": {
"id": "/properties/defendants/items/properties/representation_orders/items/properties/representation_order_date",
"type": "string"
}
},
"type": "object"
},
"type": "array"
}
},
"type": "object"
},
"type": "array"
},
"case_type": {
"id": "/properties/case_type",
"additionalProperties": false,
"properties": {
"uuid": {
"id": "/properties/case_type/properties/uuid",
"type": "string"
},
"bill_scenario": {
"id": "/properties/case_type/properties/bill_scenario",
"type": "string"
}
},
"type": "object"
},
"estimated_trial_length": {
"id": "/properties/estimated_trial_length",
"type": "string"
},
"offence": {
"additionalProperties": false,
"id": "/properties/offence",
"properties": {
"unique_code": {
"id": "/properties/offence/properties/unique_code",
"type": "string"
},
"offence_class": {
"additionalProperties": false,
"id": "/properties/offence/properties/offence_class",
"properties": {
"class_letter": {
"id": "/properties/offence/properties/offence_class/properties/class_letter",
"type": "string"
}
},
"type": "object",
"required": ["class_letter"]
}
},
"type": "object",
"required": ["unique_code"]
},
"advocate_category": {
"id": "/properties/advocate_category",
"type": "string"
},
"supplier_number": {
"id": "/properties/supplier_number",
"type": "string"
},
"first_day_of_trial": {
"id": "/properties/first_day_of_trial",
"type": ["string","null"]
}
},
"type": "object"
}