Table of Contents

Class OperationResponseDescription

Namespace
NSwag.Generation.Processors
Assembly
NSwag.Generation.dll

Describes an operation response.

public class OperationResponseDescription
Inheritance
OperationResponseDescription
Inherited Members

Constructors

OperationResponseDescription(string, Type, bool, string)

Initializes a new instance of the OperationResponseDescription class with 'Bearer' name.

public OperationResponseDescription(string statusCode, Type responseType, bool isNullable, string description)

Parameters

statusCode string

The HTTP status code.

responseType Type

The response type.

isNullable bool

Specifies whether the response is nullable.

description string

The description of the response.

Properties

Description

Gets description.

public string Description { get; }

Property Value

string

IsNullable

Gets a value indicating whether the response is nullable.

public bool IsNullable { get; }

Property Value

bool

ResponseType

Gets the response type..

public Type ResponseType { get; }

Property Value

Type

StatusCode

Gets the HTTP status code.

public string StatusCode { get; }

Property Value

string