How to load files with no headers


#1

I have a file that has no headers - just the data.
I already defined a type that matches that file.
How do I load the file?


#2

On the canonical, you need to provide the @canonicalLegacy annotation, e.g.

@canonicalLegacy(csvHeader='accountId,serviceProviderName,organizationId,...')
type CanonicalAccount mixes Canonical<CanonicalAccount> {
  
  accountId:               string
  serviceProviderName:     string
  organizationId:          string
...
}