Class JsonRamlTypeLoader

  • All Implemented Interfaces:
    TypeLoader

    public class JsonRamlTypeLoader
    extends Object
    implements TypeLoader
    RAML TypeLoader that takes the internal TypeDeclaration and transforms it into a MetadataType through TypeDeclaration.toJsonSchema() in conjunction with JsonTypeLoader.

    Supported fragments so far: RamlFragment.DataType and RamlFragment.Library, any other will fail while loading t he RAML file

    Since:
    1.0
    • Constructor Detail

      • JsonRamlTypeLoader

        public JsonRamlTypeLoader​(File ramlFile)
        Constructs a RAML type loader
        Parameters:
        ramlFile - file pointing to the RAML resource
      • JsonRamlTypeLoader

        public JsonRamlTypeLoader​(String content,
                                  String ramlLocation)
        Constructs a RAML type loader
        Parameters:
        content - content of the RAML resource
        ramlLocation - pointer to the RAML location