Added component definitions to add weight as a valid definition (#1061)
Added the required validation information Updated the readme
This commit is contained in:
@@ -594,6 +594,27 @@
|
||||
}
|
||||
},
|
||||
"required": ["name"]
|
||||
},
|
||||
|
||||
"weight": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"value": {
|
||||
"type": "number",
|
||||
"minimum": 0,
|
||||
"multipleOf": 0.01
|
||||
},
|
||||
"unit": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"kg",
|
||||
"g",
|
||||
"lb",
|
||||
"oz"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": ["value", "unit"]
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user