In order to generate RAML 0.8, add the following to your configuration. RAML generation has one specific configuration parameter:
jsonSchemaVersion
(3 or 4, 4 is default).From Miredot 2.3.x on we support RAML 1.0. This can be configured with a new configuration parameter:
version
(1.0 or 0.8, 0.8 is default).<configuration>
<output>
<raml>
<location>out/raml</location>
<title>My REST API</title>
<version>1.0</version
<jsonSchemaVersion>4</jsonSchemaVersion>
</raml>
</output>
</configuration>
miredot {
output {
formats {
'raml' {
location = 'out/raml'
title = 'My REST API'
version = '1.0'
jsonSchemaVersion = '4'
}
}
}
}
There are some specifics regarding the way Miredot generates RAML: