mulesoft / api-console

An interactive REST console based on RAML/OAS files
Other
911 stars 237 forks source link

Console does not render multiple examples #320

Closed sichvoge closed 8 years ago

sichvoge commented 8 years ago

Using the current version inside the Anypoint Platform; the examples for the following RAML document are not getting rendered.

#%RAML 1.0
title: My API

/repository:
  /projects:
    post:
      responses:
        400:
          description: User error
          body:
            application/json:
              examples:
                badKey: !include BadKey.json
                username: !include UsernameFail.json
                projectKey: !include ProjectKeyFail.json

Only if I change the RAML above to a single example helps to get things rendered.

sichvoge commented 8 years ago

It seems that the include is not working using API Designer + API Console. Since it seems that this is an issue with the API Designer that does not send the complete expanded document, I will close this issue and create a new on that side.