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

in raml •  4 years ago 

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:

img_2.png

img_1.png

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!