Reviewed: https://review.openstack.org/269406 Committed: https://git.openstack.org/cgit/openstack/python-glanceclient/commit/?id=22e3bf0234049982c83f13d3404ef0aaf6413aec Submitter: Jenkins Branch: master
commit 22e3bf0234049982c83f13d3404ef0aaf6413aec Author: zwei <leid...@unitedstack.com> Date: Mon Jan 18 10:17:14 2016 +0800 v2 - "readOnly" key should be used in schemas If it has a value of boolean true, this keyword indicates that the instance property SHOULD NOT be changed, and attempts by a user agent to modify the value of this property are expected to be rejected by a server. The value of this keyword MUST be a boolean. The default value is false. Further link for reference: http://json-schema.org/latest/json-schema-hypermedia.html#anchor15 Closes-Bug: #1521581 Depends-On: I279fba4099667d193609a31259057b897380d6f0 Change-Id: I96717506259c0d28500b8747369c47029b1dd9b6 ** Changed in: python-glanceclient Status: In Progress => Fix Released -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Glance. https://bugs.launchpad.net/bugs/1521581 Title: v2 - "readOnly" key should be used in schemas Status in Glance: Fix Released Status in python-glanceclient: Fix Released Bug description: Currently, the way object properties are labelled read-only is through the description, like so: "status": { "enum": [ "queued", "saving", "active", "killed", "deleted", "pending_delete", "deactivated" ], "type": "string", "description": "Status of the image (READ-ONLY)" } This is not the recommended way to indicate read-only status. The "readOnly" property should be used instead: "status": { "enum": [ "queued", "saving", "active", "killed", "deleted", "pending_delete", "deactivated" ], "type": "string", "readOnly": true, "description": "Status of the image" } Further link for reference: http://json-schema.org/latest/json-schema-hypermedia.html#anchor15 To manage notifications about this bug go to: https://bugs.launchpad.net/glance/+bug/1521581/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp