Skip to content

Commit 7a32c56

Browse files
committed
chore(go): simplify model test template
1 parent 663c407 commit 7a32c56

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
{{#models}}
2+
13
{{>partial_header}}
24
package {{packageName}}
35

4-
{{#models}}
56
import (
67
"testing"
78
{{#imports}}
@@ -11,7 +12,9 @@ import (
1112

1213
{{#model}}
1314
{{^isEnum}}
14-
{{#oneOf}}{{#-first}}{{/-first}}{{/oneOf}}{{^oneOf}}{{#anyOf}}{{#-first}}{{/-first}}{{/anyOf}}{{^anyOf}}{{>custom/model_simple_test}}{{/anyOf}}{{/oneOf}}
15+
{{^oneOf}}{{^anyOf}}
16+
{{>custom/model_simple_test}}
17+
{{/anyOf}}{{/oneOf}}
1518
{{/isEnum}}
1619
{{/model}}
1720
{{/models}}

0 commit comments

Comments
 (0)