Thanks to visit codestin.com
Credit goes to github.com

Skip to content

api/swagger: quote maxUint64 example value#50127

Merged
thaJeztah merged 2 commits into
moby:masterfrom
thaJeztah:swagger_uint
Jun 5, 2025
Merged

api/swagger: quote maxUint64 example value#50127
thaJeztah merged 2 commits into
moby:masterfrom
thaJeztah:swagger_uint

Conversation

@thaJeztah

Copy link
Copy Markdown
Member

More recent versions of go-swagger failed on this, because the value
is interpolated as JSON numberic value, which assumes int64 (signed).

Quote the value to prevent it being handled before validated against
uint64.

- Human readable description for the release notes

- A picture of a cute animal (not mandatory but encouraged)

thaJeztah added 2 commits June 2, 2025 14:45
More recent versions of go-swagger failed on this, because the value
is interpolated as JSON numberic value, which assumes int64 (signed).

Quote the value to prevent it being handled before validated against
uint64.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
More recent versions of go-swagger failed on this, because the value
is interpolated as JSON numberic value, which assumes int64 (signed).

Quote the value to prevent it being handled before validated against
uint64.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah added this to the 28.2.3 milestone Jun 5, 2025
@thaJeztah thaJeztah merged commit acac1d8 into moby:master Jun 5, 2025
169 checks passed
@thaJeztah thaJeztah deleted the swagger_uint branch June 5, 2025 09:59
@vvoland vvoland modified the milestones: 28.2.3, 28.3.0 Jun 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants