aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Data/Attributes/OpenApiIgnoreEnumAttribute.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Jellyfin.Data/Attributes/OpenApiIgnoreEnumAttribute.cs')
-rw-r--r--Jellyfin.Data/Attributes/OpenApiIgnoreEnumAttribute.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/Jellyfin.Data/Attributes/OpenApiIgnoreEnumAttribute.cs b/Jellyfin.Data/Attributes/OpenApiIgnoreEnumAttribute.cs
new file mode 100644
index 000000000..ff613d9f8
--- /dev/null
+++ b/Jellyfin.Data/Attributes/OpenApiIgnoreEnumAttribute.cs
@@ -0,0 +1,11 @@
+using System;
+
+namespace Jellyfin.Data.Attributes;
+
+/// <summary>
+/// Attribute to specify that the enum value is to be ignored when generating the openapi spec.
+/// </summary>
+[AttributeUsage(AttributeTargets.Field)]
+public sealed class OpenApiIgnoreEnumAttribute : Attribute
+{
+}