| | title | "AccidentDetail" |
|---|
| type | "object" |
|---|
|
|---|
| properties.accidentDetails | | title | "accidentDetails" |
|---|
| 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 | "95bd03bf-e295-4456-9aeb-906354bb363c" |
|---|
| 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 |
|---|
|
|---|
|
|---|