Skip to content

Commit

Permalink
fix modelImportPrefix for type
Browse files Browse the repository at this point in the history
  • Loading branch information
sachaarbonel committed Sep 18, 2023
1 parent 79beac0 commit fa3bf0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openapi-gen/templates/python/type.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ from dataclasses_json import config, dataclass_json
{{- $refName := refToName $ref | toCamel}}
{{- if not ($imports.Contains $refName)}}
{{- $_ := $imports.Add $refName}}
from {{with index additionalParameters "modelImportPrefix"}}{{.}}{{else}}models.{{end}}{{refToName $ref | toSnake}} import {{refToName $ref | toCamel}}{{"\n"}}
from {{with index additionalParameters "modelImportPrefix"}}{{.}}{{else}}models.{{end}}models.{{refToName $ref | toSnake}} import {{refToName $ref | toCamel}}
{{- end -}}
{{- end -}}

Expand Down

0 comments on commit fa3bf0d

Please sign in to comment.