# Interface OS3Response
InterfaceModule | import { OS3Response } from "@tsed/openspec" |
---|---|
Source | /packages/specs/openspec/src/types/openspec3/OS3Response.ts |
# Overview
interface OS3Response<Schema = OS3Schema, Header = OS3Header<Schema>> {
description<span class="token punctuation">:</span> <span class="token keyword">string</span><span class="token punctuation">;</span>
headers?<span class="token punctuation">:</span> <a href="/api/specs/openspec/types/common/OpenSpecHash.html"><span class="token">OpenSpecHash</span></a><<a href="/api/specs/schema/types/decorators/operations/Header.html"><span class="token">Header</span></a>><span class="token punctuation">;</span>
content?<span class="token punctuation">:</span> <a href="/api/specs/openspec/types/common/OpenSpecHash.html"><span class="token">OpenSpecHash</span></a><<a href="/api/specs/openspec/types/openspec3/OS3MediaType.html"><span class="token">OS3MediaType</span></a><<a href="/api/orm/mongoose/types/decorators/Schema.html"><span class="token">Schema</span></a>>><span class="token punctuation">;</span>
links?<span class="token punctuation">:</span> <a href="/api/specs/openspec/types/common/OpenSpecHash.html"><span class="token">OpenSpecHash</span></a><<a href="/api/specs/openspec/types/openspec3/OS3Link.html"><span class="token">OS3Link</span></a> | <a href="/api/specs/openspec/types/common/OpenSpecRef.html"><span class="token">OpenSpecRef</span></a>><span class="token punctuation">;</span>
}
# Members
description: string;
A short description of the response. CommonMark syntax MAY be used for rich text representation.
headers?: OpenSpecHash<Header>;
Maps a header name to its definition. RFC7230
content?: OpenSpecHash<OS3MediaType<Schema>>;
A map containing descriptions of potential response payloads. The key is a media type or media type range
links?: OpenSpecHash<OS3Link | OpenSpecRef>;
A map of operations links that can be followed from the response. The key of the map is a short name for the link, following the naming constraints of the names for Component Objects