schema: fix schema definition for schematyper
schematyper chokes on the nested definition of `parent-pkgdiff` using
the items from `pkgdiff. This moves the definition in the definitions
seection.
Example of the error:
/build schema
Generating COSA Schema v1
2020/07/07 22:49:57 Can't resolve: (#/properties/parent-pkgdiff/items #)
"minLength": 1
}
}
+ },
+ "pkg-items": {
+ "type":"array",
+ "title":"Package Set differences",
+ "items": {
+ "$id":"#/pkgdiff/items/item",
+ "title":"Items",
+ "default":"",
+ "minLength": 1
+ }
}
},
"$schema":"http://json-schema.org/draft-07/schema#",
"$id":"#/properties/pkgdiff",
"type":"array",
"title":"pkgdiff between builds",
- "items": {
- "$id":"#/properties/pkgdiff/items",
- "type":"array",
- "title":"Package Set differences",
- "items": {
- "$id":"#/properties/pkgdiff/items/items",
- "title":"Items",
- "default":"",
- "minLength": 1
- }
- }
+ "$ref": "#/definitions/pkg-items"
},
"parent-pkgdiff": {
"$id":"#/properties/parent-pkgdiff",
"type":"array",
"title":"pkgdiff against parent",
- "items": {
- "$ref":"#/properties/pkgdiff/items"
- }
+ "$ref": "#/definitions/pkg-items"
},
"rpm-ostree-inputhash": {
"$id":"#/properties/rpm-ostree-inputhash",
