MCPcopy 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
65func 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
75var schemas embed.FS

Callers 2

VersionFunction · 0.85
ValidateFunction · 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…