Class CallableFunctionObject

Hierarchy

Constructors

Properties

$comment?: string
_properties: Record<string, CallableFunctionParameter<{
    $comment?: string;
    default?: any;
    deprecated?: boolean;
    description?: string;
    examples?: any[];
    readOnly?: boolean;
    title?: string;
    writeOnly?: boolean;
}>> = {}
_required: string[] = []
additionalProperties?: boolean | CallableFunctionParameter<{
    $comment?: string;
    default?: any;
    deprecated?: boolean;
    description?: string;
    examples?: any[];
    readOnly?: boolean;
    title?: string;
    writeOnly?: boolean;
}>
default?: any
deprecated?: boolean
description?: string
examples?: any[]
id: string = ...

A UUID generated for this parameter by the library.

maxProperties?: number
minProperties?: number
name: string
patternProperties?: Record<string, CallableFunctionParameter<{
    $comment?: string;
    default?: any;
    deprecated?: boolean;
    description?: string;
    examples?: any[];
    readOnly?: boolean;
    title?: string;
    writeOnly?: boolean;
}>>
readOnly?: boolean
title?: string
type: "object" = "object"
unevaluatedProperties?: boolean
writeOnly?: boolean

Accessors

Methods

  • Returns CallableFunctionParameter<{
        $comment?: string;
        default?: any;
        deprecated?: boolean;
        description?: string;
        examples?: any[];
        readOnly?: boolean;
        title?: string;
        writeOnly?: boolean;
    }>[]

    All optional properties of the object.

  • Gets a property by name.

    Parameters

    • name: string

      The name of the property to get.

    Returns undefined | CallableFunctionParameter<{
        $comment?: string;
        default?: any;
        deprecated?: boolean;
        description?: string;
        examples?: any[];
        readOnly?: boolean;
        title?: string;
        writeOnly?: boolean;
    }>

    The property with the given name, or undefined if it does not exist.

  • Returns CallableFunctionParameter<{
        $comment?: string;
        default?: any;
        deprecated?: boolean;
        description?: string;
        examples?: any[];
        readOnly?: boolean;
        title?: string;
        writeOnly?: boolean;
    }>[]

    All required properties of the object.

  • Serializes the parameter into a JSON object.

    Returns {
        $comment?: string;
        additionalProperties?: boolean | JsonSchema;
        default?: any;
        deprecated?: boolean;
        description?: string;
        examples?: any[];
        maxProperties?: number;
        minProperties?: number;
        patternProperties?: Record<string, JsonSchema>;
        properties?: Record<string, JsonSchema>;
        readOnly?: boolean;
        required?: string[];
        title?: string;
        type: "object";
        unevaluatedProperties?: boolean;
        writeOnly?: boolean;
    }

    • Optional $comment?: string
    • Optional additionalProperties?: boolean | JsonSchema
    • Optional default?: any
    • Optional deprecated?: boolean
    • Optional description?: string
    • Optional examples?: any[]
    • Optional maxProperties?: number
    • Optional minProperties?: number
    • Optional patternProperties?: Record<string, JsonSchema>
    • Optional properties?: Record<string, JsonSchema>
    • Optional readOnly?: boolean
    • Optional required?: string[]
    • Optional title?: string
    • type: "object"
    • Optional unevaluatedProperties?: boolean
    • Optional writeOnly?: boolean
  • Returns {
        $comment?: string;
        default?: any;
        deprecated?: boolean;
        description?: string;
        examples?: any[];
        readOnly?: boolean;
        title?: string;
        writeOnly?: boolean;
    }

    • Optional $comment?: string
    • Optional default?: any
    • Optional deprecated?: boolean
    • Optional description?: string
    • Optional examples?: any[]
    • Optional readOnly?: boolean
    • Optional title?: string
    • Optional writeOnly?: boolean
  • Parameters

    • name: string
    • json: {
          $comment?: string;
          additionalProperties?: boolean | JsonSchema;
          default?: any;
          deprecated?: boolean;
          description?: string;
          examples?: any[];
          maxProperties?: number;
          minProperties?: number;
          patternProperties?: Record<string, JsonSchema>;
          properties?: Record<string, JsonSchema>;
          readOnly?: boolean;
          required?: string[];
          title?: string;
          type: "object";
          unevaluatedProperties?: boolean;
          writeOnly?: boolean;
      }
      • Optional $comment?: string
      • Optional additionalProperties?: boolean | JsonSchema
      • Optional default?: any
      • Optional deprecated?: boolean
      • Optional description?: string
      • Optional examples?: any[]
      • Optional maxProperties?: number
      • Optional minProperties?: number
      • Optional patternProperties?: Record<string, JsonSchema>
      • Optional properties?: Record<string, JsonSchema>
      • Optional readOnly?: boolean
      • Optional required?: string[]
      • Optional title?: string
      • type: "object"
      • Optional unevaluatedProperties?: boolean
      • Optional writeOnly?: boolean

    Returns CallableFunctionObject

  • Whether the given JsonSchema is a JsonSchemaObject.

    Note: This method does not check if the schema is valid, only if it has properties unique to object schemas.

    Parameters

    Returns json is {
        $comment?: string;
        additionalProperties?: boolean | JsonSchema;
        default?: any;
        deprecated?: boolean;
        description?: string;
        examples?: any[];
        maxProperties?: number;
        minProperties?: number;
        patternProperties?: Record<string, JsonSchema>;
        properties?: Record<string, JsonSchema>;
        readOnly?: boolean;
        required?: string[];
        title?: string;
        type: "object";
        unevaluatedProperties?: boolean;
        writeOnly?: boolean;
    }

Generated using TypeDoc