** Also affects: python-glanceclient
   Importance: Undecided
       Status: New

** Changed in: python-glanceclient
       Status: New => In Progress

** Changed in: python-glanceclient
   Importance: Undecided => Low

** Changed in: python-glanceclient
     Assignee: (unassigned) => zwei (suifeng20)

-- 
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:
  In Progress

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

Reply via email to