raml-java-parser
raml-java-parser copied to clipboard
!include for schemas in project directory, other than root project directory
For more info, see https://github.com/raml-org/raml-java-parser/issues/37#issuecomment-51699272
Aha! Link: https://mulesoft-roadmap.aha.io/features/APIRAML-152
this is working for me.
given the following directory structure:
some/path/my.raml
some/path/deeper/get.yaml
and my.raml:
#%RAML 0.8
title: hi
/hi:
get: !include deeper/get.yaml
you can parse it like this:
Raml raml = new RamlDocumentBuilder().build("some/path/my.raml");