Skip to content

JsonOperationOptions

@tsed/schema

Usage

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

See /packages/specs/schema/src/domain/JsonOperation.ts.

Overview

ts
interface JsonOperationOptions extends OS3Operation<JsonSchema, JsonParameter, JsonMap<JsonResponse>> {
    consumes: string[];
    produces: string[];
}

Description

Configuration options for JSON operations compatible with OpenAPI 3 specifications.

Extends the OpenAPI 3 operation specification with Ts.ED-specific media type declarations (consumes/produces) for request and response handling.

consumes

ts
consumes: string[];

produces

ts
produces: string[];

Released under the MIT License.