Skip to content

JsonParameter

@tsed/schema

Usage

typescript
import { JsonParameter } from "@tsed/schema";

See /packages/specs/schema/src/types/domain/JsonParameter.ts.

Overview

ts
class JsonParameter extends JsonMap<OS3Parameter<JsonSchema>> implements NestedGenerics {
    $kind: string;
    nestedGenerics: Type<any>[][];
    groups: string[];
    groupsName: string;
    $schema: JsonSchema;
    expression: string;
    getName(): any;
    name(name: string): this;
    examples(examples: OpenSpecHash<OS3Example | OpenSpecRef>): this;
    description(description: string): this;
    in(inType: string, expression?: string | any): this;
    required(required: boolean): this;
    schema(schema: JsonSchema): this;
    toJSON(options?: JsonSchemaOptions): any;
}

$kind

ts
$kind: string;

nestedGenerics

ts
nestedGenerics: Type<any>[][];

groups

ts
groups: string[];

groupsName

ts
groupsName: string;

$schema

ts
$schema: JsonSchema;

expression

ts
expression: string;

getName

ts
getName(): any;

name

ts
name(name: string): this;

examples

ts
examples(examples: OpenSpecHash<OS3Example | OpenSpecRef>): this;

description

ts
description(description: string): this;

in

ts
in(inType: string, expression?: string | any): this;

required

ts
required(required: boolean): this;

schema

ts
schema(schema: JsonSchema): this;

toJSON

ts
toJSON(options?: JsonSchemaOptions): any;

Released under the MIT License.