Linked Questions

Popular Questions

Can you reference example and schema in RAML

Asked by At

I am using Mule 4 and Anypoint Studio 7.

I am currently writing RAML and was looking to add a schema (validate) and example (mock response in API console) to a resource in my RAML but I am getting a generic error.

#%RAML 1.0 Trait
responses: 
  200:
    body: 
      application/json:
        schema: mySchema
        example: example/mySchema.json

Is it possible to use both the schema and example against a resource?

Thanks

Related Questions