raml-java-parser icon indicating copy to clipboard operation
raml-java-parser copied to clipboard

!include for schemas in project directory, other than root project directory

Open sslavic opened this issue 11 years ago • 1 comments

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

sslavic avatar Aug 12 '14 09:08 sslavic

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");

svacas avatar Aug 22 '14 19:08 svacas