swagger, change x-examples field to example field in schema definition
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openstackdocstheme |
Fix Released
|
High
|
Karen Bradshaw |
Bug Description
Currently, if an operation has a request example, the example is included in the generated swagger files under the extension field, x-examples.
It may be more appropriate to include the request example under the 'example' field in the schema definition for this
request (body parameter).
For instance in an operation definition,
"parameters": [
{
"name": "user",
"in": "body",
"description": "user to add to the system",
"required": true,
"schema": {
"$ref": "#/definitions/
}
}
]
"definition": {
"SomeRequestS
"properties": {},
"example": {},
"type": "object"
}
}
The definition of 'SomeRequestSchema' would include an example field with the request example.
Changed in openstack-doc-tools: | |
assignee: | nobody → Karen Bradshaw (kbhawkey) |
Changed in openstack-doc-tools: | |
status: | Confirmed → In Progress |
Agreed, marking High as I think this change would make easier to understand the Swagger content.