OaParameterExtensions.ToOpenApiParameterLocation method

Convert string to Microsoft.OpenApi ParameterLocation.

public static ParameterLocation ToOpenApiParameterLocation(this string location)
parameter description
location The string representation of the parameter location.

Return Value

The corresponding OpenApi ParameterLocation value.

Exceptions

exception condition
ArgumentOutOfRangeException Thrown when the location is not recognized.

See Also