Options
All
  • Public
  • Public/Protected
  • All
Menu

Value must be a string

Hierarchy

Implements

Index

Constructors

constructor

Properties

_meta

Protected _node

Protected nodeOrKey

nodeOrKey: IHighLevelNode | string

Protected setAsTopLevel

setAsTopLevel: boolean

Methods

RAMLVersion

  • RAMLVersion(): string

add

addToProp

attributeDefaults

  • attributeDefaults(): boolean

default

  • default(): any
  • The default attribute specifies the default value to use for the property if the property is omitted or its value is not specified. This SHOULD NOT be interpreted as a requirement for the client to send the default attribute's value if there is no other value to send. Instead, the default attribute's value is the value the server uses if the client does not send a value.

    Returns any

definition

description

displayName

  • displayName(): string

dump

  • dump(): string

enum

  • enum(): string[]
  • (Optional, applicable only for parameters of type string) The enum attribute provides an enumeration of the parameter's valid values. This MUST be an array. If the enum attribute is defined, API clients and servers MUST verify that a parameter's value matches a value in the enum array. If there is no matching value, the clients and servers MUST treat this as an error.

    Returns string[]

errors

example

  • example(): string

kind

  • kind(): string

location

maxLength

  • maxLength(): number

meta

minLength

  • minLength(): number

name

  • name(): string

optional

  • optional(): boolean

optionalProperties

  • optionalProperties(): string[]

parent

pattern

  • pattern(): string
  • (Optional, applicable only for parameters of type string) The pattern attribute is a regular expression that a parameter of type string MUST match. Regular expressions MUST follow the regular expression specification from ECMA 262/Perl 5. The pattern MAY be enclosed in double quotes for readability and clarity.

    Returns string

remove

repeat

  • repeat(): boolean

required

  • required(): boolean

runtimeDefinition

toAny

  • toAny(arg: any): any

toBoolean

  • toBoolean(arg: any): boolean

toJSON

toNumber

  • toNumber(arg: any): any

toString

  • toString(arg: any): string

type

  • type(): string

Generated using TypeDoc