Skip to content

Commit dee8a7b

Browse files
author
Andreas Reiter
committed
Add dartson-@Property to enable out of the box compatibility with code generated for e.g. Java
1 parent 07ce036 commit dee8a7b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/swagger-codegen/src/main/resources/dart/model.mustache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ part of api;
44
@Entity()
55
class {{classname}} {
66
{{#vars}}{{#description}}/* {{{description}}} */{{/description}}
7+
@Property(name: '{{baseName}}')
78
{{{datatype}}} {{name}} = {{{defaultValue}}};
89
{{#allowableValues}}{{#min}} // range from {{min}} to {{max}}{{/min}}//{{^min}}enum {{name}}Enum { {{#values}} {{.}}, {{/values}} };{{/min}}{{/allowableValues}}
910
{{/vars}}

0 commit comments

Comments
 (0)