Showing posts with label expected Array for value" in AnyPoint Studio. Show all posts
Showing posts with label expected Array for value" in AnyPoint Studio. Show all posts

Wednesday, March 6, 2019

"Invalid type String, expected Array for value" in RAML file in Anypoint Studio

While i was following the MuleSoft Developer Fundamental course I encoutered the "Invalid type String, expected Array for value" error during the import of RAML file from  Anypoint Platform to Anypoint Studio to generate API Flows. Due to this error I was not able to generate the API flow in Anypoint Studio.

This is due to some error in RAML file which was not flagged in the Anypoint Platform API Designer. Below is the fix that i used to make it work.


In your RAML, replace all usage of:
  1. examples: !include examples//AmericanFlightExample.raml
With this:
  1. examples:
  2. output: !include examples/AmericanFlightExample.raml

Reference: