| | | 1 | | /// <summary> |
| | | 2 | | /// Specifies metadata for an OpenAPI Header component. Can be applied to classes, |
| | | 3 | | /// properties, or fields to contribute entries under components.headers. |
| | | 4 | | /// </summary> |
| | | 5 | | [AttributeUsage(AttributeTargets.Method, AllowMultiple = true, Inherited = false)] |
| | | 6 | | public sealed class OpenApiResponseHeaderAttribute : KestrunAnnotation, IOpenApiResponseHeaderAttribute |
| | | 7 | | { |
| | | 8 | | /// <inheritdoc/> |
| | 0 | 9 | | public string StatusCode { get; set; } = "default"; |
| | | 10 | | |
| | | 11 | | /// <summary>Optional component key override. If omitted, generator will use class/member naming rules.</summary> |
| | 0 | 12 | | public required string Key { get; set; } |
| | | 13 | | |
| | | 14 | | /// <summary>Header description.</summary> |
| | 0 | 15 | | public string? Description { get; set; } |
| | | 16 | | |
| | | 17 | | /// <summary>Whether the header is required.</summary> |
| | 0 | 18 | | public bool Required { get; set; } |
| | | 19 | | |
| | | 20 | | /// <summary>Whether the header is deprecated.</summary> |
| | 0 | 21 | | public bool Deprecated { get; set; } |
| | | 22 | | |
| | | 23 | | /// <summary>Whether the header allows empty value.</summary> |
| | 0 | 24 | | public bool AllowEmptyValue { get; set; } |
| | | 25 | | |
| | | 26 | | /// <summary>Serialization style hint.</summary> |
| | 0 | 27 | | public OaParameterStyle? Style { get; set; } |
| | | 28 | | |
| | | 29 | | /// <summary>Explode flag for serialization.</summary> |
| | 0 | 30 | | public bool Explode { get; set; } |
| | | 31 | | |
| | | 32 | | /// <summary> |
| | | 33 | | /// Whether the header allows reserved characters. |
| | | 34 | | /// </summary> |
| | 0 | 35 | | public bool AllowReserved { get; set; } |
| | | 36 | | |
| | | 37 | | /// <summary>Inline example for header value.</summary> |
| | 0 | 38 | | public object? Example { get; set; } |
| | | 39 | | |
| | | 40 | | /// <summary> |
| | | 41 | | /// Type of the schema for the header value. |
| | | 42 | | /// </summary> |
| | 0 | 43 | | public Type? Schema { get; set; } |
| | | 44 | | } |