| | | 1 | | /// <summary> |
| | | 2 | | /// Specifies OpenAPI callback metadata for a Kestrun function. |
| | | 3 | | /// </summary> |
| | | 4 | | [AttributeUsage(AttributeTargets.Method, Inherited = false, AllowMultiple = true)] |
| | | 5 | | public sealed class OpenApiCallbackAttribute : KestrunAnnotation, IOpenApiPathAttribute |
| | | 6 | | { |
| | | 7 | | /// <summary> |
| | | 8 | | /// The callback expression for the OpenAPI callback object. |
| | | 9 | | /// </summary> |
| | 0 | 10 | | public string? Expression { get; init; } |
| | | 11 | | /// <inheritdoc/> |
| | 0 | 12 | | public string? HttpVerb { get; set; } |
| | | 13 | | |
| | | 14 | | /// <inheritdoc/> |
| | 0 | 15 | | public string? Pattern { get; init; } |
| | | 16 | | |
| | | 17 | | /// <inheritdoc/> |
| | 0 | 18 | | public string? Summary { get; set; } |
| | | 19 | | |
| | | 20 | | /// <inheritdoc/> |
| | 0 | 21 | | public string? Description { get; set; } |
| | | 22 | | |
| | | 23 | | /// <inheritdoc/> |
| | 0 | 24 | | public string? OperationId { get; set; } |
| | | 25 | | |
| | | 26 | | /// <inheritdoc/> |
| | 0 | 27 | | public string[] Tags { get; set; } = []; |
| | | 28 | | |
| | | 29 | | /// <inheritdoc/> |
| | 0 | 30 | | public bool Deprecated { get; set; } |
| | | 31 | | |
| | | 32 | | /// <inheritdoc/> |
| | 0 | 33 | | public string[]? DocumentId { get; set; } |
| | | 34 | | |
| | | 35 | | /// <summary> |
| | | 36 | | /// Indicates whether the callback should be inlined within the parent OpenAPI document. |
| | | 37 | | /// </summary> |
| | 0 | 38 | | public bool Inline { get; set; } |
| | | 39 | | } |