OpenSpecInfo
@tsed/openspec
Usage
typescript
import { OpenSpecInfo } from "@tsed/openspec";
See /packages/specs/openspec/src/types/common/OpenSpecInfo.ts.
Overview
ts
interface OpenSpecInfo {
title: string;
version: string;
description?: string;
termsOfService?: string;
contact?: OpenSpecContact;
license?: OpenSpecLicense;
}
title
ts
title: string;
The title of the application.
version
ts
version: string;
The version of the OpenAPI document (which is distinct from the OpenAPI Specification version or the API implementation version).
description
ts
description?: string;
A short description of the application. CommonMark syntax MAY be used for rich text representation.
termsOfService
ts
termsOfService?: string;
A URL to the Terms of Service for the API. MUST be in the format of a URL.
contact
ts
contact?: OpenSpecContact;
The contact information for the exposed API.
license
ts
license?: OpenSpecLicense;
The license information for the exposed API.