github.com/djarvur/go-swagger@v0.18.0/generator/templates/schematype.gotmpl (about)

     1  {{ define "schemaType" }}
     2    {{- if and (or ((len .AllOf) gt 0) .IsAnonymous) ( not .IsMap) }}
     3      {{- template "schemaBody" . }}
     4    {{- else }}
     5      {{- if and (not .IsMap) .IsNullable }}*{{ end }}
     6      {{- .GoType }}
     7    {{- end}}
     8  {{- end }}
     9  
    10  {{- define "dereffedSchemaType" }}
    11    {{- if and (or ((len .AllOf) gt 0) .IsAnonymous) ( not .IsMap) }}
    12      {{- template "schemaBody" . }}
    13    {{- else }}
    14      {{- .GoType }}
    15    {{- end}}
    16  {{- end }}
    17  
    18  {{- define "typeSchemaType"}}
    19    {{- if and (or ((len .AllOf) gt 0) .IsAnonymous) ( not .IsMap) }}
    20      {{- template "schemaBody" . }}
    21    {{- else }}
    22      {{- if and (not .IsMap) .IsNullable }}*{{ end }}
    23      {{- if .AliasedType }}{{ .AliasedType }}{{ else }}{{ .GoType }}{{ end }}
    24    {{- end}}
    25  {{- end }}