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:

5 comments:

Priya said...

This post is wonderful and thanks for sharing.
Mulesoft Online Training
Mulesoft Training in Hyderabad

Blogger said...

Did you know there's a 12 word phrase you can tell your crush... that will induce deep emotions of love and impulsive attractiveness for you buried within his heart?

Because deep inside these 12 words is a "secret signal" that fuels a man's impulse to love, treasure and guard you with all his heart...

===> 12 Words Who Fuel A Man's Desire Instinct

This impulse is so built-in to a man's brain that it will drive him to work better than before to make your relationship as strong as it can be.

As a matter of fact, fueling this powerful impulse is absolutely binding to getting the best possible relationship with your man that once you send your man a "Secret Signal"...

...You will soon notice him open his heart and mind for you in a way he haven't experienced before and he will perceive you as the one and only woman in the world who has ever truly attracted him.

e learning portal said...

well explanation... Any one looking for
power bi training videos contact +91 9885022027.

Ranjith said...

Very nice post here and thanks for it .I always like and such a super contents of these post.Excellent and very cool idea and great content of different kinds of the valuable information's.

python Training in chennai

python Course in chennai

Keerthi55 said...

Mulesoft training
python training
angular js training
selenium trainings