We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 663c407 commit 7a32c56Copy full SHA for 7a32c56
templates/go/custom/model_test.mustache
@@ -1,7 +1,8 @@
1
+{{#models}}
2
+
3
{{>partial_header}}
4
package {{packageName}}
5
-{{#models}}
6
import (
7
"testing"
8
{{#imports}}
@@ -11,7 +12,9 @@ import (
11
12
13
{{#model}}
14
{{^isEnum}}
-{{#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}}
18
{{/isEnum}}
19
{{/model}}
20
{{/models}}
0 commit comments