Revert "Add controller version to generated files" (#47)

This reverts commit 13d5677bf3.
This commit is contained in:
Joshua Spence
2021-09-24 07:21:34 +10:00
committed by GitHub
parent 7d87194aef
commit 8d4ca5f389
63 changed files with 8 additions and 73 deletions

View File

@@ -92,11 +92,10 @@ var fileReps = []replacement{
var embedTypes bool
type Resource struct {
ControllerVersion string
StructName string
ResourcePath string
Types map[string]*FieldInfo
FieldProcessor func(name string, f *FieldInfo) error
StructName string
ResourcePath string
Types map[string]*FieldInfo
FieldProcessor func(name string, f *FieldInfo) error
}
type FieldInfo struct {
@@ -110,11 +109,9 @@ type FieldInfo struct {
CustomUnmarshalType string
}
func NewResource(version string, structName string, resourcePath string) *Resource {
func NewResource(structName string, resourcePath string) *Resource {
baseType := NewFieldInfo(structName, resourcePath, "struct", "", false, false, "")
resource := &Resource{
ControllerVersion: version,
StructName: structName,
ResourcePath: resourcePath,
Types: map[string]*FieldInfo{
@@ -301,7 +298,7 @@ func main() {
continue
}
resource := NewResource(fmt.Sprintf("v%s", unifiVersion), structName, urlPath)
resource := NewResource(structName, urlPath)
switch resource.StructName {
case "Account":