| | title | "AccidentDetail" |
|---|
| type | "object" |
|---|
|
|---|
| properties.accidentDetails | | title | "Accident Details" |
|---|
| description | "Details for Accident" |
|---|
| type | "object" |
|---|
|
|---|
| properties.accidentDetails.properties.Severity | | title | "Severity" |
|---|
| type | "string" |
|---|
| required | true |
|---|
| enum | | "Fatal" |
| "Injury" |
| "Property" |
|
|---|
|
|---|
| properties.accidentDetails.properties._localId | | title | "_localId" |
|---|
| type | "string" |
|---|
| required | true |
|---|
| x-format | "uuid" |
|---|
| default | "10e3aab0-d824-4017-a8d2-ea29cc0fd0b3" |
|---|
| pattern | "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" |
|---|
| x-hidden | true |
|---|
|
|---|
| properties.accidentDetails.properties.Main cause | | title | "Main cause" |
|---|
| type | "string" |
|---|
| enum | | "Vehicle defect" |
| "Road defect" |
| "Human error" |
|
|---|
|
|---|
| properties.accidentDetails.properties.Description | | title | "Description" |
|---|
| type | "string" |
|---|
| x-format | "textarea" |
|---|
|
|---|
| properties.accidentDetails.properties.Num vehicles | | title | "Num vehicles" |
|---|
| type | "integer" |
|---|
|
|---|
| properties.accidentDetails.properties.Surface type | | title | "Surface type" |
|---|
| type | "string" |
|---|
| enum | | "Concrete" |
| "Asphalt" |
| "Gravel" |
| "Earth" |
|
|---|
|
|---|
| properties.accidentDetails.properties.Street lights | | title | "Street lights" |
|---|
| type | "string" |
|---|
| enum | |
|---|
|
|---|
| properties.vehicles | | title | "vehicles" |
|---|
| type | "array" |
|---|
| items | | title | "Vehicle" |
|---|
| description | "A vehicle involved in the accident" |
|---|
| type | "object" |
|---|
| required | false |
|---|
| uniqueItems | false |
|---|
| readOnly | false |
|---|
| x-hidden | false |
|---|
| x-runtime-only | false |
|---|
|
|---|
|
|---|
| properties.people | | title | "people" |
|---|
| type | "array" |
|---|
| items | | title | "Person" |
|---|
| description | "A person involved in the accident" |
|---|
| type | "object" |
|---|
| required | false |
|---|
| uniqueItems | false |
|---|
| readOnly | false |
|---|
| x-hidden | false |
|---|
| x-runtime-only | false |
|---|
|
|---|
|
|---|
| properties.people.items | | title | "Person" |
|---|
| description | "A person involved in the accident" |
|---|
| type | "object" |
|---|
|
|---|
| properties.people.items.properties.Age | |
|---|
| properties.people.items.properties.Sex | | title | "Sex" |
|---|
| type | "string" |
|---|
| enum | |
|---|
|
|---|
| properties.people.items.properties.Name | | title | "Name" |
|---|
| type | "string" |
|---|
| x-format | "text" |
|---|
|
|---|
| properties.people.items.properties.Injury | | title | "Injury" |
|---|
| type | "string" |
|---|
| required | true |
|---|
| enum | | "Fatal" |
| "Serious" |
| "Minor" |
| "Not injured" |
|
|---|
|
|---|
| properties.people.items.properties.Address | | title | "Address" |
|---|
| type | "string" |
|---|
| x-format | "text" |
|---|
|
|---|
| properties.people.items.properties.vehicle | | title | "vehicle" |
|---|
| type | "string" |
|---|
| required | true |
|---|
|
|---|
| properties.people.items.properties._localId | | title | "_localId" |
|---|
| type | "string" |
|---|
| required | true |
|---|
| x-format | "uuid" |
|---|
| default | "f303c8c2-dc96-4cbf-ad5e-827a94828a72" |
|---|
| pattern | "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" |
|---|
| x-hidden | true |
|---|
|
|---|