RESTCLIENT.NET / API REFERENCE
RestClient.Net.OpenApiGenerator.ParameterInfo
All API types · RestClient.Net.OpenApiGenerator · View source
public readonly record struct ParameterInfo(string Name, string Type, bool IsPath, bool IsHeader, string OriginalName, bool Required, string? DefaultValue)
Parameter information for OpenAPI operations.
| Parameter | Type | Default | Description |
|---|---|---|---|
Name |
string |
Required | The parameter name. |
Type |
string |
Required | The parameter type. |
IsPath |
bool |
Required | Whether the parameter is a path parameter. |
IsHeader |
bool |
Required | Whether the parameter is a header parameter. |
OriginalName |
string |
Required | The original parameter name from the OpenAPI spec. |
Required |
bool |
Required | Whether the parameter is required. |
DefaultValue |
string? |
Required | The default value for the parameter. |
Members
.ctor
public ParameterInfo(string Name, string Type, bool IsPath, bool IsHeader, string OriginalName, bool Required, string? DefaultValue);
Parameter information for OpenAPI operations.
| Parameter | Type | Default | Description |
|---|---|---|---|
Name |
string |
Required | The parameter name. |
Type |
string |
Required | The parameter type. |
IsPath |
bool |
Required | Whether the parameter is a path parameter. |
IsHeader |
bool |
Required | Whether the parameter is a header parameter. |
OriginalName |
string |
Required | The original parameter name from the OpenAPI spec. |
Required |
bool |
Required | Whether the parameter is required. |
DefaultValue |
string? |
Required | The default value for the parameter. |
View source: RestClient.Net.OpenApiGenerator/ExtensionMethodGenerator.cs:11
DefaultValue
public string? DefaultValue { get; init; }
View source: RestClient.Net.OpenApiGenerator/ExtensionMethodGenerator.cs:18
IsHeader
public bool IsHeader { get; init; }
View source: RestClient.Net.OpenApiGenerator/ExtensionMethodGenerator.cs:15
IsPath
public bool IsPath { get; init; }
View source: RestClient.Net.OpenApiGenerator/ExtensionMethodGenerator.cs:14
Name
public string Name { get; init; }
View source: RestClient.Net.OpenApiGenerator/ExtensionMethodGenerator.cs:12
OriginalName
public string OriginalName { get; init; }
View source: RestClient.Net.OpenApiGenerator/ExtensionMethodGenerator.cs:16
Required
public bool Required { get; init; }
View source: RestClient.Net.OpenApiGenerator/ExtensionMethodGenerator.cs:17
Type
public string Type { get; init; }
View source: RestClient.Net.OpenApiGenerator/ExtensionMethodGenerator.cs:13