Skip to content

Multiple inheritance types render incomplete in method response #363

@tiguchi

Description

@tiguchi

Problem

Given the following minimal example api.raml file:

#%RAML 1.0
title: Test API
types:
  BaseA:
    properties:
      a:
        type: string
  BaseB:
    properties:
      b:
        type: string
  Complete:
    type: [ BaseA, BaseB ]
    properties:
      c:
        type: string

/complete:
  get:
    responses:
      200:
        body:
          application/json:
            type: Complete

Custom object types that inherit from multiple base types appear incomplete in any resource method response section. Above example only shows properties inherited from BaseAand the properties directly defined in the type Complete:

image

The order of the type array in Complete matters. When BaseB comes first, then only B's properties appear in the output, on top of the properties defined in Complete.

The output in the documentation's Types section is complete though:

image

System & Version Info

API Console Version: 3.0.10
Browser: Google Chrome Version 54.0.2840.98 (64-bit)
OS: Mac OS X Sierra 10.12.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions