(mappings []RefMapping)
| 258 | } |
| 259 | |
| 260 | func validationMappings(mappings []RefMapping) []validation.RefMapping { |
| 261 | out := make([]validation.RefMapping, 0, len(mappings)) |
| 262 | for _, mapping := range mappings { |
| 263 | out = append(out, validation.RefMapping{ |
| 264 | Source: mapping.Source, |
| 265 | Target: mapping.Target, |
| 266 | }) |
| 267 | } |
| 268 | return out |
| 269 | } |