Skip to content

Commit

Permalink
[ignore] fix class include function and fix excluding unneeded testva…
Browse files Browse the repository at this point in the history
…rs headers
  • Loading branch information
akinross committed Jun 14, 2024
1 parent c3ec10e commit baeb7b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions gen/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -1141,8 +1141,6 @@ func (m *Model) SetClassInclude() {
for key, value := range classDetails.(map[interface{}]interface{}) {
if key.(string) == "include" {
m.Include = value.(bool)
} else {
m.Include = false
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion gen/templates/testvars.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ default:
{{overwriteProperty .PkgName .SnakeCaseName $.Definitions}}: "{{overwritePropertyValue .PkgName $overwritePropertyName "" "default" 0 $.Definitions}}"
{{- end}}
{{- end}}

{{ if .HasNaming }}
datasource_non_existing:
{{- range .Properties}}{{$testValue := createNonExistingValue .SnakeCaseName}}{{$overwritePropertyName := overwriteProperty .PkgName .SnakeCaseName $.Definitions}}
{{- if .IsNaming }}
Expand All @@ -31,6 +31,7 @@ resource_required:
{{overwriteProperty .PkgName .SnakeCaseName $.Definitions}}: "{{overwritePropertyValue .PkgName $overwritePropertyName $testValue "resource_required" 0 $.Definitions}}"
{{- end}}
{{- end}}
{{- end }}

all:
{{- range .Properties}}{{$overwritePropertyName := overwriteProperty .PkgName .SnakeCaseName $.Definitions}}
Expand Down

0 comments on commit baeb7b5

Please sign in to comment.