@igli.kokici/st-open-api
Version:
Generates API client SDKs from an OpenAPI specification written in OpenAPI version 3.x.x
19 lines (18 loc) • 691 B
TypeScript
import { IMediaTypes } from "./i-media-types";
export interface IRequestBody {
/**
* A brief description of the request body. This could contain examples of use.
* CommonMark syntax MAY be used for rich text representation.
*/
description?: string;
/**
* REQUIRED. The content of the request body. The key is a media type or media type range
* and the value describes it. For requests that match multiple keys, only the most specific key
* is applicable. e.g. text/plain overrides text/*
*/
content: IMediaTypes;
/**
* Determines if the request body is required in the request. Defaults to false.
*/
required?: boolean;
}