MCPcopy Create free account
hub / github.com/docker/cli / validateForbidden

Function validateForbidden

cli/compose/loader/loader.go:143–153  ·  view source on GitHub ↗
(configDict map[string]any)

Source from the content-addressed store, hash-verified

141}
142
143func validateForbidden(configDict map[string]any) error {
144 servicesDict, ok := configDict["services"].(map[string]any)
145 if !ok {
146 return nil
147 }
148 forbidden := getProperties(servicesDict, types.ForbiddenProperties)
149 if len(forbidden) > 0 {
150 return &ForbiddenPropertiesError{Properties: forbidden}
151 }
152 return nil
153}
154
155func loadSections(config map[string]any, configDetails types.ConfigDetails) (*types.Config, error) {
156 var err error

Callers 1

LoadFunction · 0.85

Calls 1

getPropertiesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…