| | | 1 | | /// <summary> |
| | | 2 | | /// OpenAPI Parameter metadata for query/path/header/cookie items. |
| | | 3 | | /// Apply on parameters or fields marked with <see cref="OpenApiModelKindAttribute"/> = Parameters. |
| | | 4 | | /// </summary> |
| | | 5 | | [AttributeUsage(AttributeTargets.Parameter | AttributeTargets.Field, AllowMultiple = true, Inherited = false)] |
| | | 6 | | public sealed class OpenApiParameterAttribute : OpenApiProperties |
| | | 7 | | { |
| | | 8 | | /// <summary>Where the parameter lives (query/header/path/cookie).</summary> |
| | 0 | 9 | | public string In { get; set; } = OaParameterLocation.Query.ToString(); |
| | | 10 | | /// <summary>Override the parameter name (default: property name).</summary> |
| | 0 | 11 | | public string? Name { get; set; } |
| | | 12 | | /// <summary>Override the parameter name (default: property name).</summary> |
| | 0 | 13 | | public string? Key { get; set; } |
| | | 14 | | /// <summary>Marks the parameter as required.</summary> |
| | 0 | 15 | | public bool Required { get; set; } |
| | | 16 | | |
| | | 17 | | /// <summary>Allow empty value (query only).</summary> |
| | 0 | 18 | | public bool AllowEmptyValue { get; set; } |
| | | 19 | | /// <summary>Serialization style hint.</summary> |
| | 0 | 20 | | public OaParameterStyle? Style { get; set; } |
| | | 21 | | /// <summary>Explode hint for structured values.</summary> |
| | 0 | 22 | | public bool Explode { get; set; } |
| | | 23 | | /// <summary>Allow reserved characters unescaped (query only).</summary> |
| | 0 | 24 | | public bool AllowReserved { get; set; } |
| | | 25 | | } |