Thursday, March 14, 2019

Useful GIT Commands

Git is a distributed version-control system for tracking changes in source code during software development. 
# delete local tag 'v2.0.1'
git tag -d v2.0.1

# delete remote tag 'v2.0.1' (eg, GitHub version too)
git push origin :refs/tags/v2.0.1

# alternative approach
git push --delete origin v2.0.1
git tag -d v2.0.1

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: