diff --git a/glance/api/v2/image_members.py b/glance/api/v2/image_members.py index 03f6429b..fa6850ea 100644 --- a/glance/api/v2/image_members.py +++ b/glance/api/v2/image_members.py @@ -346,7 +346,10 @@ _MEMBER_SCHEMA = { 'rejected' ] }, - 'schema': {'type': 'string'} + 'schema': { + 'readOnly': True, + 'type': 'string' + } } diff --git a/glance/api/v2/metadef_namespaces.py b/glance/api/v2/metadef_namespaces.py index d9ec20b1..a8444e75 100644 --- a/glance/api/v2/metadef_namespaces.py +++ b/glance/api/v2/metadef_namespaces.py @@ -715,9 +715,11 @@ def _get_base_properties(): "format": "date-time" }, "schema": { + 'readOnly': True, "type": "string" }, "self": { + 'readOnly': True, "type": "string" }, "resource_type_associations": { diff --git a/glance/api/v2/metadef_objects.py b/glance/api/v2/metadef_objects.py index 22134bdf..9d231bd1 100644 --- a/glance/api/v2/metadef_objects.py +++ b/glance/api/v2/metadef_objects.py @@ -184,9 +184,11 @@ def _get_base_properties(): "$ref": "#/definitions/property" }, "schema": { + 'readOnly': True, "type": "string" }, "self": { + 'readOnly': True, "type": "string" }, "created_at": { diff --git a/glance/api/v2/tasks.py b/glance/api/v2/tasks.py index ba5050a3..c6d61158 100644 --- a/glance/api/v2/tasks.py +++ b/glance/api/v2/tasks.py @@ -374,8 +374,14 @@ _TASK_SCHEMA = { "description": _("Datetime when this resource was updated"), "type": "string" }, - 'self': {'type': 'string'}, - 'schema': {'type': 'string'} + 'self': { + 'readOnly': True, + 'type': 'string' + }, + 'schema': { + 'readOnly': True, + 'type': 'string' + } }