use swagger support for « title » as generated types names for inline schema

align naming convention with x-go-name

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
Nicolas De Loof
2017-11-24 11:41:57 +01:00
parent d6935a8f1a
commit 8e7f9afa47
8 changed files with 37 additions and 7 deletions

View File

@@ -20,7 +20,7 @@ import (
{{ range .ExtraSchemas }}
// {{ .Name }} {{ template "docstring" . }}
// {{ .Name }} {{ comment .Description }}
// swagger:model {{ .Name }}
{{ template "schema" . }}
{{ end }}