From 0c69acae111b33b85b72ba6ee028135648c98440 Mon Sep 17 00:00:00 2001
From: Andre Hofmeister <9199345+HofmeisterAn@users.noreply.github.com>
Date: Tue, 5 Nov 2024 16:08:24 +0100
Subject: [PATCH] chore: Set `PackageLicenseExpression` and fix incorrect
datatype for container attach parameter (#5)
---
src/Directory.Build.props | 2 +-
.../Models/ContainerAttachParameters.Generated.cs | 4 ++--
tools/specgen/modeldefs.go | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/Directory.Build.props b/src/Directory.Build.props
index c8fadf6a4..c6ac85278 100644
--- a/src/Directory.Build.props
+++ b/src/Directory.Build.props
@@ -14,7 +14,7 @@
true
true
$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb
- LICENSE
+ MIT
icon.png
diff --git a/src/Docker.DotNet/Models/ContainerAttachParameters.Generated.cs b/src/Docker.DotNet/Models/ContainerAttachParameters.Generated.cs
index 14e2746f1..0a2b58503 100644
--- a/src/Docker.DotNet/Models/ContainerAttachParameters.Generated.cs
+++ b/src/Docker.DotNet/Models/ContainerAttachParameters.Generated.cs
@@ -20,7 +20,7 @@ public class ContainerAttachParameters // (main.ContainerAttachParameters)
[QueryStringParameter("detachKeys", false)]
public string DetachKeys { get; set; }
- [QueryStringParameter("logs", false)]
- public string Logs { get; set; }
+ [QueryStringParameter("logs", false, typeof(BoolQueryStringConverter))]
+ public bool? Logs { get; set; }
}
}
diff --git a/tools/specgen/modeldefs.go b/tools/specgen/modeldefs.go
index 85c9b6429..3225ffdfd 100644
--- a/tools/specgen/modeldefs.go
+++ b/tools/specgen/modeldefs.go
@@ -93,7 +93,7 @@ type ContainerAttachParameters struct {
Stdout bool `rest:"query"`
Stderr bool `rest:"query"`
DetachKeys string `rest:"query,detachKeys"`
- Logs string `rest:"query"`
+ Logs bool `rest:"query"`
}
// ContainerInspectParameters for GET /containers/(id)/json