# Function getSpec

Function
Module
import { getSpec } from "@tsed/schema"
Source/packages/schema/src/utils/getSpec.ts

# Overview

function getSpec(model: Type<any>, options: OS2SpecSerializerOptions): Partial<OpenSpec2>;
export function getSpec(model: Type<any>): Partial<OpenSpec2>;
export function getSpec(model: Type<any>, options: SpecSerializerOptions): Partial<OpenSpec2>;

export function getSpec(model: Type<any>, options: OS3SpecSerializerOptions): Partial<OpenSpec3>;

# Description

Return the swagger or open spec for the given class.

Other topics