Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/docker/cli
/ normalizeVersion
Function
normalizeVersion
cli/compose/schema/schema.go:65–72 ·
view source on GitHub ↗
(version string)
Source
from the content-addressed store, hash-verified
63
}
64
65
func
normalizeVersion(version string) string {
66
switch
version {
67
case
""
,
"3"
:
68
return
defaultVersion
69
default:
70
return
version
71
}
72
}
73
74
//go:embed data/config_schema_v*.json
75
var
schemas embed.FS
Callers
2
Version
Function · 0.85
Validate
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…