Skip to content

Commit b01f7dc

Browse files
committed
updated java model template to use property instead vendor extension map for composed model identification
1 parent 854f16b commit b01f7dc

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/main/resources/handlebars/Java/model.mustache

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ import javax.validation.Valid;
3535
{{/x-is-composed-model}}
3636
{{#models}}
3737
{{#model}}
38-
{{#vendorExtensions.x-is-composed-model}}
38+
{{#isComposedModel}}
3939
{{>interface}}
40-
{{/vendorExtensions.x-is-composed-model}}
41-
{{^vendorExtensions.x-is-composed-model}}
40+
{{/isComposedModel}}
41+
{{^isComposedModel}}
4242
{{#is this 'enum'}}{{>modelEnum}}{{/is}}{{#isNot this 'enum'}}{{>pojo}}{{/isNot}}
43-
{{/vendorExtensions.x-is-composed-model}}
43+
{{/isComposedModel}}
4444
{{/model}}
4545
{{/models}}

src/main/resources/mustache/Java/model.mustache

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ import javax.validation.Valid;
3535
{{/x-is-composed-model}}
3636
{{#models}}
3737
{{#model}}
38-
{{#vendorExtensions.x-is-composed-model}}
38+
{{#isComposedModel}}
3939
{{>interface}}
40-
{{/vendorExtensions.x-is-composed-model}}
41-
{{^vendorExtensions.x-is-composed-model}}
40+
{{/isComposedModel}}
41+
{{^isComposedModel}}
4242
{{#is this 'enum'}}{{>modelEnum}}{{/is}}{{#isNot this 'enum'}}{{>pojo}}{{/isNot}}
43-
{{/vendorExtensions.x-is-composed-model}}
43+
{{/isComposedModel}}
4444
{{/model}}
4545
{{/models}}

0 commit comments

Comments
 (0)