Values of "type" parameters in JSON response are incorrect for Image schemas APIs

Bug #1490953 reported by Dai Yongjin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-api-site
Fix Released
Low
Li Yuanyuan

Bug Description

In the JSON response of the following two APIs, values of some "type" parameters are incorrect.
http://developer.openstack.org/api-ref-image-v2.html#getImagesSchema
http://developer.openstack.org/api-ref-image-v2.html#getImageSchema

For example, the document writes:
"owner":
{
  "description": "Owner of the image",
  "maxLength": 255,
  "type": "string"
}

But my environment returns:
"owner":
{
  "type":
  [
    "null",
    "string"
  ],
  "description": "Owner of the image",
  "maxLength": 255
}

According to the glance code, I think the document is wrong.
https://github.com/openstack/glance/blob/master/glance/api/v2/images.py#L844

Tags: api
Dai Yongjin (daiyongjin)
Changed in openstack-api-site:
assignee: nobody → Dai Yongjin (daiyongjin)
tags: added: api
Revision history for this message
Diane Fleming (diane-fleming) wrote :

Hey Dai, You should not assign this to yourself until someone else has triaged the bug. Thanks, diane

Changed in openstack-api-site:
assignee: Dai Yongjin (daiyongjin) → nobody
Changed in openstack-api-site:
status: New → Confirmed
importance: Undecided → Low
Changed in openstack-api-site:
assignee: nobody → Diane Fleming (diane-fleming)
milestone: none → liberty
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to api-site (master)

Fix proposed to branch: master
Review: https://review.openstack.org/220371

Changed in openstack-api-site:
status: Confirmed → In Progress
Changed in openstack-api-site:
assignee: Diane Fleming (diane-fleming) → nobody
assignee: nobody → Li Yuanyuan (liyuanyuan-fnst)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to api-site (master)

Reviewed: https://review.openstack.org/227099
Committed: https://git.openstack.org/cgit/openstack/api-site/commit/?id=27b3ddb2a2074a704e3b87b82bd31aaefaa5049b
Submitter: Jenkins
Branch: master

commit 27b3ddb2a2074a704e3b87b82bd31aaefaa5049b
Author: Li Yuanyuan <email address hidden>
Date: Thu Sep 24 19:37:02 2015 +0800

    Fix response info for "Image schemas" apis

    Wrong response info for /v2/schemas/images and /v2/schemas/image APIs.

    Co-Authored-By: Dai Yongjin <email address hidden>

    Change-Id: Ia2b8574b0ef49e870d0848ef15db4b4874e1bf90
    Closes-Bug: #1499153
    Closes-Bug: #1490953

Changed in openstack-api-site:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on api-site (master)

Change abandoned by Diane Fleming (<email address hidden>) on branch: master
Review: https://review.openstack.org/220371
Reason: fixed through another patch

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.