Skip to content

GenerateSpecOptions

@tsed/schema

Usage

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

See /packages/specs/schema/src/utils/generateSpec.ts.

Overview

ts
interface GenerateSpecOptions extends Omit<SpecSerializerOptions, "specType"> {
    tokens: JsonTokenOptions;
    version?: string;
    acceptMimes?: string;
    specVersion?: string;
    spec?: any;
    fileSpec?: any;
    sortPaths?: boolean;
}

tokens

ts
tokens: JsonTokenOptions;

version

ts
version?: string;

acceptMimes

ts
acceptMimes?: string;

specVersion

ts
specVersion?: string;

spec

ts
spec?: any;

fileSpec

ts
fileSpec?: any;

sortPaths

ts
sortPaths?: boolean;

Released under the MIT License.