Skip to content

Commit

Permalink
chore: Set PackageLicenseExpression and fix incorrect datatype for …
Browse files Browse the repository at this point in the history
…container attach parameter (#5)
  • Loading branch information
HofmeisterAn authored Nov 5, 2024
1 parent bbfb13a commit 0c69aca
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<IncludeSymbols>true</IncludeSymbols>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageIcon>icon.png</PackageIcon>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
}
}
2 changes: 1 addition & 1 deletion tools/specgen/modeldefs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0c69aca

Please sign in to comment.