From b2a0a6dd7ca493ff78b96277a3838c33d3324f63 Mon Sep 17 00:00:00 2001 From: Polianin Nikita Date: Sat, 1 Jun 2024 10:58:11 +0300 Subject: [PATCH] feat: add default value attribute --- Endpoint/Common/Attributes/SwaggerDefaultAttribute.cs | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Endpoint/Common/Attributes/SwaggerDefaultAttribute.cs diff --git a/Endpoint/Common/Attributes/SwaggerDefaultAttribute.cs b/Endpoint/Common/Attributes/SwaggerDefaultAttribute.cs new file mode 100644 index 0000000..4eeadfa --- /dev/null +++ b/Endpoint/Common/Attributes/SwaggerDefaultAttribute.cs @@ -0,0 +1,9 @@ +using System; + +namespace Mirea.Api.Endpoint.Common.Attributes; + +[AttributeUsage(AttributeTargets.Parameter)] +public class SwaggerDefaultAttribute(string value) : Attribute +{ + public string Value { get; } = value; +} \ No newline at end of file