Home Reference Source Repository
public class | source

Definition

Swagger Definition

Method Summary

Public Methods
public

Get a property by name

public

Check if the definition is the given type

public

Return the number of properties

public

Walk through all properties

Public Methods

public getProperty(name: string): object source

Get a property by name

Params:

NameTypeAttributeDescription
name string

The name of the property element

Return:

object

public isType(type: string): boolean source

Check if the definition is the given type

Params:

NameTypeAttributeDescription
type string

the type of the definition (number, string, object etc.)

Return:

boolean

public totalProperties(): number source

Return the number of properties

Return:

number

public walkProperties(fn: function) source

Walk through all properties

Params:

NameTypeAttributeDescription
fn function

function to exectute for each property element. taking three arguments: