RAML is a language for the definition of HTTP-based APIs that embody most or all of the principles of REST. In Mulesoft while designing an API using API Designer developer should provide Request and Response Examples along with Datatype in RAML format.
As a developer, we usually receive JSON examples and need to convert them to RAML Datatype on our own.
- if JSON Example is just 10 lines - Easy Peasy 😎
- if JSON Example exceeds 1400 lines - well that's gonna be hard 😪
I've faced this kind of issue in one of my projects. where we need to create a Datatype for an example that has over 1800 lines. Well, it took us nearly 4 hours to create a basic #datatype.
So I questioned why we should spend so much time in Copy & Pasting in 2022. I came up with a pretty # straightforward #solution.
Deployed using
Version Control on
JSON to RAML datatype converter is a tool designed to help Mulesoft developers which can be used to convert JSON data to the RAML data type. This tool has two options that can be used to make all keys optional in RAML and make all keys CamelCase in RAML.
This tool is completely made using HTML, CSS & Javascript. The entire operation is done on the Client Side so no API is called hence no data is sent anywhere.
This tool is hosted on GitHub Pages.
Visit this link:
To use this tool in Docker - Visit this link :