sources/inline: fix schema
The top-level node "items" was not defined and the required property "encoding" was wrongly called "method".
This commit is contained in:
parent
88da3beabc
commit
7576191c2d
1 changed files with 7 additions and 4 deletions
|
|
@ -24,9 +24,7 @@ from osbuild.util.checksum import verify_file
|
|||
|
||||
|
||||
SCHEMA = """
|
||||
"additionalProperties": false,
|
||||
"required": ["items"],
|
||||
"properties": {
|
||||
"definitions": {
|
||||
"item": {
|
||||
"description": "Inline data indexed by their checksum",
|
||||
"type": "object",
|
||||
|
|
@ -35,7 +33,7 @@ SCHEMA = """
|
|||
"(md5|sha1|sha256|sha384|sha512):[0-9a-f]{32,128}": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["method", "data"],
|
||||
"required": ["encoding", "data"],
|
||||
"properties": {
|
||||
"encoding": {
|
||||
"description": "The specific encoding of `data`",
|
||||
|
|
@ -49,6 +47,11 @@ SCHEMA = """
|
|||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": ["items"],
|
||||
"properties": {
|
||||
"items": {"$ref": "#/definitions/item"}
|
||||
}
|
||||
"""
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue