(paths []string)
| 292 | } |
| 293 | |
| 294 | func NewSpecReader(paths []string) (*SpecReader, error) { |
| 295 | reader := newSpecReader() |
| 296 | if err := reader.initialize(paths); err != nil { |
| 297 | return nil, err |
| 298 | } |
| 299 | |
| 300 | if err := reader.validate(); err != nil { |
| 301 | return nil, err |
| 302 | } |
| 303 | |
| 304 | return reader, nil |
| 305 | } |
| 306 | |
| 307 | // NewSpecReaderWithoutValidation reads and parses specs without enforcing that |
| 308 | // every source has a destination (or that any destination exists at all). The |