Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/schema-validation.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@
"aurora-1.2.json",
"aurora-1.3.json",
"aurora-2.0.json",
"azure-deviceupdate-update-manifest-4.json",
"azure-deviceupdate-update-manifest-5.json",
"azure-deviceupdate-import-manifest-4.0.json",
"azure-deviceupdate-import-manifest-5.0.json",
"azure-iot-edge-deployment-1.0.json",
"azure-iot-edge-deployment-2.0.json",
"azure-iot-edge-deployment-template-1.0.json",
Expand Down
42 changes: 28 additions & 14 deletions src/schemas/json/azure-deviceupdate-manifest-definitions-4.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"title": "Update compatibility",
"description": "List of device property sets this update is compatible with.",
"items": {
"$ref": "azure-deviceupdate-manifest-definitions-4.0.json#/definitions/compatibilityInfo"
"$ref": "#/definitions/compatibilityInfo"
},
"minItems": 1,
"maxItems": 10
Expand All @@ -49,13 +49,20 @@
"title": "Update compatibility info",
"description": "Properties of a device this update is compatible with.",
"additionalProperties": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"propertyNames": {
"minLength": 1,
"maxLength": 32
}
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 64
},
{
"type": "object",
"propertyNames": {
"minLength": 1,
"maxLength": 32
}
}
]
},
"minProperties": 1,
"maxProperties": 5
Expand All @@ -66,7 +73,7 @@
"description": "Update payload file, e.g. binary, firmware, script, etc. Must be unique within update.",
"properties": {
"filename": {
"$ref": "azure-deviceupdate-manifest-definitions-4.0.json#/definitions/filename"
"$ref": "#/definitions/filename"
},
"sizeInBytes": {
"type": "number",
Expand All @@ -76,7 +83,7 @@
"maximum": 2147483648
},
"hashes": {
"$ref": "azure-deviceupdate-manifest-definitions-4.0.json#/definitions/fileHashes"
"$ref": "#/definitions/fileHashes"
}
},
"additionalProperties": false,
Expand All @@ -101,10 +108,17 @@
}
},
"additionalProperties": {
"type": "string",
"propertyNames": {
"maxLength": 10
}
"anyOf": [
{
"type": "string"
},
{
"type": "object",
"propertyNames": {
"maxLength": 10
}
}
]
},
"maxProperties": 2,
"required": ["sha256"]
Expand Down
36 changes: 25 additions & 11 deletions src/schemas/json/azure-deviceupdate-manifest-definitions-5.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,20 @@
"title": "Update compatibility info",
"description": "Properties of a device this update is compatible with.",
"additionalProperties": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"propertyNames": {
"minLength": 1,
"maxLength": 32
}
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 64
},
{
"type": "object",
"propertyNames": {
"minLength": 1,
"maxLength": 32
}
}
]
},
"minProperties": 1,
"maxProperties": 5
Expand Down Expand Up @@ -130,10 +137,17 @@
}
},
"additionalProperties": {
"type": "string",
"propertyNames": {
"maxLength": 10
}
"anyOf": [
{
"type": "string"
},
{
"type": "object",
"propertyNames": {
"maxLength": 10
}
}
]
},
"maxProperties": 2,
"required": ["sha256"]
Expand Down
Loading