From 31f057c0970ff8301363d2c7c04c5dc577eb1453 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Tue, 20 Aug 2024 17:28:11 +0300 Subject: [PATCH] Hiding "enable" property in API docs for applications --- src/Prowlarr.Api.V1/Applications/ApplicationResource.cs | 4 ++++ src/Prowlarr.Api.V1/Prowlarr.Api.V1.csproj | 1 + 2 files changed, 5 insertions(+) diff --git a/src/Prowlarr.Api.V1/Applications/ApplicationResource.cs b/src/Prowlarr.Api.V1/Applications/ApplicationResource.cs index e83c2ae87..417ba238a 100644 --- a/src/Prowlarr.Api.V1/Applications/ApplicationResource.cs +++ b/src/Prowlarr.Api.V1/Applications/ApplicationResource.cs @@ -1,11 +1,15 @@ using NzbDrone.Core.Applications; +using Swashbuckle.AspNetCore.Annotations; namespace Prowlarr.Api.V1.Applications { public class ApplicationResource : ProviderResource { public ApplicationSyncLevel SyncLevel { get; set; } + + [SwaggerIgnore] public bool Enable { get; set; } + public string TestCommand { get; set; } } diff --git a/src/Prowlarr.Api.V1/Prowlarr.Api.V1.csproj b/src/Prowlarr.Api.V1/Prowlarr.Api.V1.csproj index 961680043..3c52ecc40 100644 --- a/src/Prowlarr.Api.V1/Prowlarr.Api.V1.csproj +++ b/src/Prowlarr.Api.V1/Prowlarr.Api.V1.csproj @@ -5,6 +5,7 @@ +