| | | 1 | | /// <summary> |
| | | 2 | | /// Place on a property or parameter to indicate it is an OpenAPI link. |
| | | 3 | | /// </summary> |
| | | 4 | | [AttributeUsage(AttributeTargets.Property | AttributeTargets.Parameter, AllowMultiple = true)] |
| | | 5 | | public sealed class OpenApiLinkAttribute : KestrunAnnotation |
| | | 6 | | { |
| | | 7 | | /// <summary> |
| | | 8 | | /// Override the parameter name (default: property name). |
| | | 9 | | /// </summary> |
| | 0 | 10 | | public string? Key { get; set; } |
| | | 11 | | /// <summary> |
| | | 12 | | /// Optional description for the link. |
| | | 13 | | /// </summary> |
| | 0 | 14 | | public string? Description { get; set; } |
| | | 15 | | |
| | | 16 | | /// <summary> |
| | | 17 | | /// The operationId of the linked operation. |
| | | 18 | | /// </summary> |
| | 0 | 19 | | public string? OperationId { get; set; } |
| | | 20 | | |
| | | 21 | | /// <summary> |
| | | 22 | | /// The operationId of the linked operation. |
| | | 23 | | /// </summary> |
| | 0 | 24 | | public string? OperationRef { get; set; } |
| | | 25 | | /// <summary> |
| | | 26 | | /// The map key for the request parameter. |
| | | 27 | | /// </summary> |
| | 0 | 28 | | public string? MapKey { get; set; } |
| | | 29 | | /// <summary> |
| | | 30 | | /// The map value for the request parameter. |
| | | 31 | | /// </summary> |
| | 0 | 32 | | public string? MapValue { get; set; } |
| | | 33 | | /// <summary> |
| | | 34 | | /// The request body expression or json for the link. |
| | | 35 | | /// </summary> |
| | 0 | 36 | | public string? RequestBodyExpression { get; set; } |
| | | 37 | | /// <summary> |
| | | 38 | | /// The request body json for the link. |
| | | 39 | | /// </summary> |
| | 0 | 40 | | public string? RequestBodyJson { get; set; } |
| | | 41 | | } |