Raml 1.0 Types with examples and mulesoft mocking service
<p>I am using RAML 1.0 in the mulesoft api designer.</p>

<p>I would like to use types/properties to describe my api responses, and also enable the mocking service so I can run the api and get back an example response. I thought if I gave the type an example value the mocking service would be able to generate the example json response. This is my test raml</p>

<pre><code>#%RAML 1.0
title: Test
baseUri: https://mocksvc.mulesoft.com/mocks/&lt;removed&gt;

types:

  Email:
    description: Email address
    example: Steve@test.com

/user:
  get:
    responses:
      200:
        body:
          application/json:
            properties:
              email: Email
</code></pre>

<p>When I run the api through the mocking service, I expect my response body to be this:</p>

<pre><code>{
  "email": "Steve@test.com"
}
</code></pre>

<p>but the service reports that it has no information and returns this in the body</p>

<pre><code>{
  "message": "RAML had no response information for application/json"
}
</code></pre>