(services map[string]any, propertyMap map[string]string)
| 257 | } |
| 258 | |
| 259 | func getProperties(services map[string]any, propertyMap map[string]string) map[string]string { |
| 260 | output := map[string]string{} |
| 261 | |
| 262 | for _, service := range services { |
| 263 | if serviceDict, ok := service.(map[string]any); ok { |
| 264 | for property, description := range propertyMap { |
| 265 | if _, isSet := serviceDict[property]; isSet { |
| 266 | output[property] = description |
| 267 | } |
| 268 | } |
| 269 | } |
| 270 | } |
| 271 | |
| 272 | return output |
| 273 | } |
| 274 | |
| 275 | // ForbiddenPropertiesError is returned when there are properties in the Compose |
| 276 | // file that are forbidden. |
no outgoing calls
no test coverage detected
searching dependent graphs…