Jump to content

JsonSchema:AccidentDetail

From Wikiyouth
processedSchema
title"AccidentDetail"
type"object"
properties.accidentDetails
title"accidentDetails"
description"Details for Accident"
type"object"
properties.accidentDetails.properties.Severity
title"Severity"
type"string"
requiredtrue
enum
"Fatal"
"Injury"
"Property"
properties.accidentDetails.properties._localId
title"_localId"
type"string"
requiredtrue
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-hiddentrue
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
"Lit"
"Unlit"
properties.vehicles
title"vehicles"
type"array"
items
title"Vehicle"
description"A vehicle involved in the accident"
type"object"
requiredfalse
uniqueItemsfalse
readOnlyfalse
x-hiddenfalse
x-runtime-onlyfalse
properties.people
title"people"
type"array"
items
title"Person"
description"A person involved in the accident"
type"object"
requiredfalse
uniqueItemsfalse
readOnlyfalse
x-hiddenfalse
x-runtime-onlyfalse