OpenApiDocDescriptor.NewOpenApiLink method
Creates a new OpenApiLink instance based on the provided parameters.
public OpenApiLink NewOpenApiLink(string? operationRef, string? operationId, string? description,
OpenApiServer? server, IDictionary? parameters, object? requestBody, IDictionary? extensions)
| parameter | description |
|---|---|
| operationRef | Operation reference string. |
| operationId | Operation identifier string. |
| description | Description of the link. |
| server | Server object associated with the link. |
| parameters | Parameters dictionary for the link. |
| requestBody | Request body object or expression. |
| extensions | Extensions dictionary for the link. |
Return Value
Newly created OpenApiLink instance.
Exceptions
| exception | condition |
|---|---|
| ArgumentException | Thrown when both operationRef and operationId are provided. |
See Also
- class OpenApiDocDescriptor
- namespace Kestrun.OpenApi