Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "src/raml1/ast.core/linter"

Index

Type aliases

ASTNodeImpl

ASTNodeImpl: ASTNodeImpl

ASTPropImpl

ASTPropImpl: ASTPropImpl

Error

Error: yaml.Error

Variables

MAX_RECURSION_LEVEL

MAX_RECURSION_LEVEL: number

changeCase

changeCase: any

loophole

loophole: any

mediaTypeParser

mediaTypeParser: any

parameterPropertyToName

parameterPropertyToName: object

Type declaration

pluralize

pluralize: any

settings

settings: LinterSettings

stringify

stringify: any

su

su: any

typeToName

typeToName: object

Type declaration

Functions

actualSegments

  • actualSegments(rootPath: string): Array<string>

calculateExceeding

  • calculateExceeding(rootPath: string, relativePath: string): number

checkIfDomainIsUserDefined

  • checkIfDomainIsUserDefined(d: IProperty): boolean

checkPropertyQuard

checkReference

checkResourceTypeReference

checkTraitReference

cleanupIncludesFlag

contentProvider

createIssue

createLLIssue

createLibraryIssue

evalInSandbox

  • evalInSandbox(code: string, thisArg: any, args: any[]): any

extractLowLevelNode

findElementAtPath

getHumanReadableNodeName

getMediaType

getMediaType2

hasTemplateArgs

isDefaultValueProp

isDuplicateSibling

isExampleProp

isJson

  • isJson(s: string): boolean

isSecuredBy

isTypeOrSchema

isValid

isValidArray

isValidPropertyValue

isValidValueType

isXML

  • isXML(s: string): boolean

lintNode

lintWithFile

localError

localLowLevelError

mapPath

nameForNonReference

restrictUnknownNodeError

specializeReferenceError

  • specializeReferenceError(originalMessage: string, property: Property, astNode: IAttribute): string
  • Sometimes we need a more specialized message for the bad references, which diviate from a general algorithm. Like listing possible values etc. This method is responsible for such cases.

    Parameters

    Returns string

toIssue

toReadableName

  • toReadableName(template: string, toLowerCase?: boolean, pluralize_?: boolean): any

typeOfContainingTemplate

validate

validateBasic

validateIncludes

validateIncludesLL

validateRegexp

validateResponseString

  • validateResponseString(v: string): any

Object literals

RESERVED_TEMPLATE_PARAMETERS

RESERVED_TEMPLATE_PARAMETERS: object

methodName

methodName: string

resourcePath

resourcePath: string

resourcePathName

resourcePathName: string

allowOverride

allowOverride: object

body

body: number

headers

headers: number

methods

methods: number

queryParameters

queryParameters: number

resources

resources: number

responses

responses: number

Generated using TypeDoc