Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "src/raml1/lowLevelAST"

Index

Functions

buildPath

  • buildPath(reference: any, unitPath: any, rootPath: any): any
  • Canonic way of resolving references in RAML specs:

    • relative reference is regarded as relative to containing unit
    • absolute local path (starting with slash) is regarderd as relative to root RAML
    • absolute web paths are regarded as such

    Parameters

    • reference: any

      reference to be resolved

    • unitPath: any

      path of unit containing the reference, absolute or relative to root

    • rootPath: any

      path to root RAML

    Returns any

    resolved path

initRamlFile

insertNode

isLowLevelNode

  • isLowLevelNode(object: any): boolean

isWebPath

  • isWebPath(reference: any): boolean

removeNode

setAttr

setAttrStructured

setKey

toAbsolutePath

  • toAbsolutePath(context: string, reference: string): string
  • Resolving reference against context

    • absolute local and web references are regarded as such
    • relative references are regarded as relative to the context

    Parameters

    • context: string

      absolute local or web path

    • reference: string

    Returns string

    resolved reference

Generated using TypeDoc