I have followed all of the instructions in the PDF's provided but when i try and deploy my api proxy it keeps failing with the following error:
17:00:38.582 03/26/2018 Worker-0 qtp489589215-33 ERROR
null
org.mule.module.apikit.exception.ApikitRuntimeException: Invalid API descriptor -- errors found: 1
Invalid element false;. -- assets/american-flights-api.raml [line=12, col=19]
The setup works in Anypoint Studio along with Runtime Manager but when i move it to work as an API Proxy it breaks raml file included below
# %RAML 1.0
version: v1
title: American Flights API
types:
AmericanFlights: !include exchange_modules/68ef9520-24e9-4cf2-b2f5-620025690913/training-american-flight-data-type/1.0.1/AmericanFlightDataType.raml
/flights:
get:
queryParameters:
destination:
required: false
enum:
- SFO
- LAX
- CLE
responses:
200:
body:
application/json:
type: AmericanFlights[]
example: !include exchange_modules/68ef9520-24e9-4cf2-b2f5-620025690913/training-american-flights-example/1.0.1/AmericanFlightsExample.raml
post:
body:
application/json:
type: AmericanFlights
example: !include examples/AmericanFlightNoIDExample.raml
responses:
201:
body:
application/json:
example:
message: Flight added (but not really)
/{ID}:
get:
responses:
200:
body:
application/json:
type: AmericanFlights
example: !include examples/AmericanFlightExample.raml
delete:
responses:
200:
body:
application/json:
example:
message: Flight deleted (but not really)
put:
body:
application/json:
example: !include examples/AmericanFlightNoIDExample.raml
responses:
200:
body:
application/json:
example:
message: Flight updated (but not really)
I have managed to find a way to fix this issue by creating a new Raml file for the American Flights API on mulesoft Design Center. By recreating the File i have been able to deploy the API Proxy, I am unsure why this has resolved this issue so if anyone has any information on this that would be great. I am going to continue investigating the issues with the original RAML file to see if i can find the reason why.