diff --git a/docs.sh b/docs.sh
index 9cbb02756..a84de5fc0 100644
--- a/docs.sh
+++ b/docs.sh
@@ -21,15 +21,21 @@ slnFile=src/Lidarr.sln
platform=Posix
+if [ "$PLATFORM" = "Windows" ]; then
+ application=Lidarr.Console.dll
+else
+ application=Lidarr.dll
+fi
+
dotnet clean $slnFile -c Debug
dotnet clean $slnFile -c Release
dotnet msbuild -restore $slnFile -p:Configuration=Debug -p:Platform=$platform -p:RuntimeIdentifiers=$RUNTIME -t:PublishAllRids
dotnet new tool-manifest
-dotnet tool install --version 6.5.0 Swashbuckle.AspNetCore.Cli
+dotnet tool install --version 6.6.2 Swashbuckle.AspNetCore.Cli
-dotnet tool run swagger tofile --output ./src/Lidarr.Api.V1/openapi.json "$outputFolder/net6.0/$RUNTIME/lidarr.console.dll" v1 &
+dotnet tool run swagger tofile --output ./src/Lidarr.Api.V1/openapi.json "$outputFolder/net6.0/$RUNTIME/$application" v1 &
sleep 45
diff --git a/src/Lidarr.Api.V1/Albums/AlbumResource.cs b/src/Lidarr.Api.V1/Albums/AlbumResource.cs
index 06548e334..7a3d2a561 100644
--- a/src/Lidarr.Api.V1/Albums/AlbumResource.cs
+++ b/src/Lidarr.Api.V1/Albums/AlbumResource.cs
@@ -6,6 +6,7 @@
using Newtonsoft.Json;
using NzbDrone.Core.MediaCover;
using NzbDrone.Core.Music;
+using Swashbuckle.AspNetCore.Annotations;
namespace Lidarr.Api.V1.Albums
{
@@ -49,6 +50,7 @@ public int MediumCount
// Hiding this so people don't think its usable (only used to set the initial state)
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)]
+ [SwaggerIgnore]
public bool Grabbed { get; set; }
}
diff --git a/src/Lidarr.Api.V1/Lidarr.Api.V1.csproj b/src/Lidarr.Api.V1/Lidarr.Api.V1.csproj
index 7fe0a2d5a..da4390af4 100644
--- a/src/Lidarr.Api.V1/Lidarr.Api.V1.csproj
+++ b/src/Lidarr.Api.V1/Lidarr.Api.V1.csproj
@@ -9,6 +9,7 @@
+
diff --git a/src/Lidarr.Api.V1/Tracks/TrackResource.cs b/src/Lidarr.Api.V1/Tracks/TrackResource.cs
index 47f58811d..6e66e7922 100644
--- a/src/Lidarr.Api.V1/Tracks/TrackResource.cs
+++ b/src/Lidarr.Api.V1/Tracks/TrackResource.cs
@@ -5,6 +5,7 @@
using Lidarr.Http.REST;
using Newtonsoft.Json;
using NzbDrone.Core.Music;
+using Swashbuckle.AspNetCore.Annotations;
namespace Lidarr.Api.V1.Tracks
{
@@ -29,6 +30,7 @@ public class TrackResource : RestResource
// Hiding this so people don't think its usable (only used to set the initial state)
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)]
+ [SwaggerIgnore]
public bool Grabbed { get; set; }
}
diff --git a/src/NzbDrone.Host/Lidarr.Host.csproj b/src/NzbDrone.Host/Lidarr.Host.csproj
index 9c3f91115..2209c0b6a 100644
--- a/src/NzbDrone.Host/Lidarr.Host.csproj
+++ b/src/NzbDrone.Host/Lidarr.Host.csproj
@@ -6,7 +6,7 @@
-
+