Closed hunterowens closed 6 years ago
@toddapetersen thoughts?
Hi Hunter. I agree with the thinking. We may want to consider breaking it down further to more easily accommodate future designs. Here is what I think the model might look like:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title" : "New Vehicle Schema",
"type": "object",
"properties": {
"type": {
"$ref": "#/models/Vehicle"
},
"propulsion": {
"$ref": "#/models/Propulsion"
}
}
}
"Vehicle": {
"title" : "Vehicle Schema",
"type" : "string",
"enum": [
"bike",
"scooter",
"recumbent"]
}
"Propulsion": {
"title" : "Propulsion Schema",
"type":"string",
"enum":[
"human",
"electric",
"combustion"]
}
Changed committed.