Added component definitions to add weight as a valid definition (#1061)

Added the required validation information
Updated the readme
This commit is contained in:
Daniel W. Anner
2023-01-19 11:40:40 -05:00
committed by GitHub
parent cdc3581843
commit 9f546df7fe
4 changed files with 50 additions and 0 deletions

View File

@@ -54,6 +54,13 @@
},
"comments": {
"type": "string"
},
"weight": {
"type": "array",
"items": {
"$ref": "components.json#/definitions/weight"
},
"maxItems": 1
}
},
"required": ["manufacturer", "model"],