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
stringThe HTTP status code.
responseType
TypeThe response type.
isNullable
boolSpecifies whether the response is nullable.
description
stringThe description of the response.
Properties
Description
Gets description.
public string Description { get; }
Property Value
IsNullable
Gets a value indicating whether the response is nullable.
public bool IsNullable { get; }
Property Value
ResponseType
Gets the response type..
public Type ResponseType { get; }
Property Value
StatusCode
Gets the HTTP status code.
public string StatusCode { get; }