Skip to content

Title of property is shown as extra object #36

@x12a1f

Description

@x12a1f

When rendering the following schema:

"properties": {
          "with-title": {
              "type": "string",
              "title": "title"
          },
          "with-title-and-description": {
              "type": "string",
              "title": "title",
              "description": "description"
          },
          "without-title": {
              "type": "string",
              "description": "description"              
          }
      }

The titels of the properties are shown as additional object keys as shown below:

selection_211

I would have expected the first column to just read:

  • with-title
  • with-title-and-description
  • without-title

Is this an intended feature?

Full spec to repoduce:

{
    "x-navigateMethodsByName": true,
    "definitions": {
    "AccountList": {
      "type": "object",
      "title": "AccountList",
      "properties": {
          "with-title": {
              "type": "string",
              "title": "title"
          },
          "with-title-and-description": {
              "type": "string",
              "title": "title",
              "description": "description"
          },
          "without-title": {
              "type": "string",
              "description": "description"              
          }
      }
    }
  },
  "info": {
    "title": "minimal"
  },
  "swagger": "2.0",
  "paths": {
    "/account": {
      "get": {
        "summary": "List accounts",
        "consumes": [
          "application/json"
        ],
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Success",
            "schema": {
              "$ref": "#/definitions/AccountList"
            }
          }
        }
      }
    }
  }
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions