JsonOperationOptions
@tsed/schema
Usage
typescript
import { JsonOperationOptions } from "@tsed/schema";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[];