v2 - "type" property not provided at top level for image schema
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
New
|
Undecided
|
Sana Khan |
Bug Description
If you retrieve the schema for an image by executing this HTTP request:
GET /schemas/image
you get back this JSON schema:
{
"additional
"type": "string"
},
"name": "image",
"links": [
{
"href": "{self}",
"rel": "self"
},
{
"href": "{file}",
"rel": "enclosure"
},
{
"href": "{schema}",
"rel": "describedby"
}
],
"properties": {
"status": {
"enum": [
],
"type": "string",
},
"tags": {
},
"type": "array",
},
"type": [
],
},
"enum": [
],
"type": [
],
},
"min_ram": {
"type": "integer",
},
"type": [
],
},
],
}
},
"type": "array",
},
"enum": [
],
"type": "string",
},
"type": "string",
},
"owner": {
"type": [
],
},
"file": {
"type": "string",
},
"min_disk": {
"type": "integer",
},
"type": [
],
},
"id": {
"type": "string",
},
"size": {
"type": [
],
},
"type": "string",
},
"type": "string",
},
"name": {
"type": [
],
},
"checksum": {
"type": [
],
},
"type": "string",
},
"enum": [
],
"type": [
],
},
"type": "string",
},
"type": "boolean",
},
"type": "string",
},
"type": "string",
},
"self": {
"type": "string",
},
"schema": {
"type": "string",
}
}
}
which is mostly correct, except for the fact it doesn't have a top-level type. This should be "object".
It'd be nice if we could also have "$schema" and "description" keys defined for the top-level object too.
Changed in glance: | |
assignee: | nobody → Sana Khan (sana.khan) |