File tree Expand file tree Collapse file tree 9 files changed +36
-36
lines changed
main/groovy/com/github/hauner/openapi/spring/writer
params-complex-data-types/generated/model
params-request-body/generated/model
ref-into-another-file/generated/model
response-complex-data-types/generated/model
test/groovy/com/github/hauner/openapi/spring/writer Expand file tree Collapse file tree 9 files changed +36
-36
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright 2019 the original authors
2+ * Copyright 2019-2020 the original authors
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
@@ -62,7 +62,7 @@ class DataTypeWriter {
6262
6363 private String getGetter (String propertyName , DataType propDataType ) {
6464 """ \
65- public ${ propDataType.name} get${ propertyName.capitalize ()} () {
65+ public ${ propDataType.name} get${ propertyName.capitalize ()} () {
6666 return ${ propertyName} ;
6767 }
6868
@@ -71,7 +71,7 @@ class DataTypeWriter {
7171
7272 private String getSetter (String propertyName , DataType propDataType ) {
7373 """ \
74- public void set${ propertyName.capitalize ()} (${ propDataType.name} ${ propertyName} ) {
74+ public void set${ propertyName.capitalize ()} (${ propDataType.name} ${ propertyName} ) {
7575 this.${ propertyName} = ${ propertyName} ;
7676 }
7777
Original file line number Diff line number Diff line change 11/*
2- * Copyright 2019 the original authors
2+ * Copyright 2019-2020 the original authors
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
@@ -118,21 +118,21 @@ import java.util.List;
118118
119119 then :
120120 target. toString (). contains (""" \
121- public String getIsbn () {
121+ public String getIsbn() {
122122 return isbn;
123123 }
124124
125- public void setIsbn (String isbn) {
125+ public void setIsbn(String isbn) {
126126 this.isbn = isbn;
127127 }
128128
129129""" )
130130 target. toString (). contains (""" \
131- public String getTitle () {
131+ public String getTitle() {
132132 return title;
133133 }
134134
135- public void setTitle (String title) {
135+ public void setTitle(String title) {
136136 this.title = title;
137137 }
138138
Original file line number Diff line number Diff line change @@ -15,19 +15,19 @@ public class Props {
1515 @ JsonProperty ("prop2" )
1616 private String prop2 ;
1717
18- public String getProp1 () {
18+ public String getProp1 () {
1919 return prop1 ;
2020 }
2121
22- public void setProp1 (String prop1 ) {
22+ public void setProp1 (String prop1 ) {
2323 this .prop1 = prop1 ;
2424 }
2525
26- public String getProp2 () {
26+ public String getProp2 () {
2727 return prop2 ;
2828 }
2929
30- public void setProp2 (String prop2 ) {
30+ public void setProp2 (String prop2 ) {
3131 this .prop2 = prop2 ;
3232 }
3333
Original file line number Diff line number Diff line change @@ -15,19 +15,19 @@ public class Book {
1515 @ JsonProperty ("title" )
1616 private String title ;
1717
18- public String getIsbn () {
18+ public String getIsbn () {
1919 return isbn ;
2020 }
2121
22- public void setIsbn (String isbn ) {
22+ public void setIsbn (String isbn ) {
2323 this .isbn = isbn ;
2424 }
2525
26- public String getTitle () {
26+ public String getTitle () {
2727 return title ;
2828 }
2929
30- public void setTitle (String title ) {
30+ public void setTitle (String title ) {
3131 this .title = title ;
3232 }
3333
Original file line number Diff line number Diff line change @@ -15,19 +15,19 @@ public class Book {
1515 @ JsonProperty ("title" )
1616 private String title ;
1717
18- public String getIsbn () {
18+ public String getIsbn () {
1919 return isbn ;
2020 }
2121
22- public void setIsbn (String isbn ) {
22+ public void setIsbn (String isbn ) {
2323 this .isbn = isbn ;
2424 }
2525
26- public String getTitle () {
26+ public String getTitle () {
2727 return title ;
2828 }
2929
30- public void setTitle (String title ) {
30+ public void setTitle (String title ) {
3131 this .title = title ;
3232 }
3333
Original file line number Diff line number Diff line change @@ -12,11 +12,11 @@ public class Author {
1212 @ JsonProperty ("name" )
1313 private String name ;
1414
15- public String getName () {
15+ public String getName () {
1616 return name ;
1717 }
1818
19- public void setName (String name ) {
19+ public void setName (String name ) {
2020 this .name = name ;
2121 }
2222
Original file line number Diff line number Diff line change @@ -15,19 +15,19 @@ public class Book {
1515 @ JsonProperty ("title" )
1616 private String title ;
1717
18- public String getIsbn () {
18+ public String getIsbn () {
1919 return isbn ;
2020 }
2121
22- public void setIsbn (String isbn ) {
22+ public void setIsbn (String isbn ) {
2323 this .isbn = isbn ;
2424 }
2525
26- public String getTitle () {
26+ public String getTitle () {
2727 return title ;
2828 }
2929
30- public void setTitle (String title ) {
30+ public void setTitle (String title ) {
3131 this .title = title ;
3232 }
3333
Original file line number Diff line number Diff line change @@ -15,19 +15,19 @@ public class BookInlineResponse200 {
1515 @ JsonProperty ("title" )
1616 private String title ;
1717
18- public String getIsbn () {
18+ public String getIsbn () {
1919 return isbn ;
2020 }
2121
22- public void setIsbn (String isbn ) {
22+ public void setIsbn (String isbn ) {
2323 this .isbn = isbn ;
2424 }
2525
26- public String getTitle () {
26+ public String getTitle () {
2727 return title ;
2828 }
2929
30- public void setTitle (String title ) {
30+ public void setTitle (String title ) {
3131 this .title = title ;
3232 }
3333
Original file line number Diff line number Diff line change @@ -18,27 +18,27 @@ public class BookNested {
1818 @ JsonProperty ("author" )
1919 private Author author ;
2020
21- public String getIsbn () {
21+ public String getIsbn () {
2222 return isbn ;
2323 }
2424
25- public void setIsbn (String isbn ) {
25+ public void setIsbn (String isbn ) {
2626 this .isbn = isbn ;
2727 }
2828
29- public String getTitle () {
29+ public String getTitle () {
3030 return title ;
3131 }
3232
33- public void setTitle (String title ) {
33+ public void setTitle (String title ) {
3434 this .title = title ;
3535 }
3636
37- public Author getAuthor () {
37+ public Author getAuthor () {
3838 return author ;
3939 }
4040
41- public void setAuthor (Author author ) {
41+ public void setAuthor (Author author ) {
4242 this .author = author ;
4343 }
4444
You can’t perform that action at this time.
0 commit comments