This repository was archived by the owner on Mar 16, 2025. It is now read-only.
File tree 10 files changed +232
-0
lines changed
src/testInt/resources/tests/model-name-suffix
10 files changed +232
-0
lines changed Original file line number Diff line number Diff line change
1
+ items :
2
+ - generated/api/Api.java
3
+ - generated/model/FooResource.java
4
+ - generated/model/FooInlineResource.java
5
+ - generated/model/BarResource.java
6
+ - generated/model/ParamResource.java
7
+ - generated/model/BodyResource.java
Original file line number Diff line number Diff line change
1
+ /*
2
+ * This class is auto generated by https://github.com/hauner/openapi-processor-core.
3
+ * TEST ONLY.
4
+ */
5
+
6
+ package generated .api ;
7
+
8
+ import annotation .Mapping ;
9
+ import annotation .Parameter ;
10
+ import generated .model .BodyResource ;
11
+ import generated .model .FooResource ;
12
+ import generated .model .ParamResource ;
13
+
14
+ public interface Api {
15
+
16
+ @ Mapping ("/foo" )
17
+ FooResource getFoo (@ Parameter ParamResource param , @ Parameter BodyResource body );
18
+
19
+ }
Original file line number Diff line number Diff line change
1
+ /*
2
+ * This class is auto generated by https://github.com/hauner/openapi-processor-core.
3
+ * TEST ONLY.
4
+ */
5
+
6
+ package generated .model ;
7
+
8
+ import com .fasterxml .jackson .annotation .JsonProperty ;
9
+
10
+ public class BarResource {
11
+
12
+ @ JsonProperty ("prop" )
13
+ private String prop ;
14
+
15
+ public String getProp () {
16
+ return prop ;
17
+ }
18
+
19
+ public void setProp (String prop ) {
20
+ this .prop = prop ;
21
+ }
22
+
23
+ }
Original file line number Diff line number Diff line change
1
+ /*
2
+ * This class is auto generated by https://github.com/hauner/openapi-processor-core.
3
+ * TEST ONLY.
4
+ */
5
+
6
+ package generated .model ;
7
+
8
+ import com .fasterxml .jackson .annotation .JsonProperty ;
9
+
10
+ public class BodyResource {
11
+
12
+ @ JsonProperty ("prop" )
13
+ private String prop ;
14
+
15
+ public String getProp () {
16
+ return prop ;
17
+ }
18
+
19
+ public void setProp (String prop ) {
20
+ this .prop = prop ;
21
+ }
22
+
23
+ }
Original file line number Diff line number Diff line change
1
+ /*
2
+ * This class is auto generated by https://github.com/hauner/openapi-processor-core.
3
+ * TEST ONLY.
4
+ */
5
+
6
+ package generated .model ;
7
+
8
+ import com .fasterxml .jackson .annotation .JsonProperty ;
9
+
10
+ public class FooInlineResource {
11
+
12
+ @ JsonProperty ("prop" )
13
+ private String prop ;
14
+
15
+ public String getProp () {
16
+ return prop ;
17
+ }
18
+
19
+ public void setProp (String prop ) {
20
+ this .prop = prop ;
21
+ }
22
+
23
+ }
Original file line number Diff line number Diff line change
1
+ /*
2
+ * This class is auto generated by https://github.com/hauner/openapi-processor-core.
3
+ * TEST ONLY.
4
+ */
5
+
6
+ package generated .model ;
7
+
8
+ import com .fasterxml .jackson .annotation .JsonProperty ;
9
+
10
+ public class FooResource {
11
+
12
+ @ JsonProperty ("prop" )
13
+ private String prop ;
14
+
15
+ @ JsonProperty ("nested" )
16
+ private BarResource nested ;
17
+
18
+ @ JsonProperty ("inline" )
19
+ private FooInlineResource inline ;
20
+
21
+ public String getProp () {
22
+ return prop ;
23
+ }
24
+
25
+ public void setProp (String prop ) {
26
+ this .prop = prop ;
27
+ }
28
+
29
+ public BarResource getNested () {
30
+ return nested ;
31
+ }
32
+
33
+ public void setNested (BarResource nested ) {
34
+ this .nested = nested ;
35
+ }
36
+
37
+ public FooInlineResource getInline () {
38
+ return inline ;
39
+ }
40
+
41
+ public void setInline (FooInlineResource inline ) {
42
+ this .inline = inline ;
43
+ }
44
+
45
+ }
Original file line number Diff line number Diff line change
1
+ /*
2
+ * This class is auto generated by https://github.com/hauner/openapi-processor-core.
3
+ * TEST ONLY.
4
+ */
5
+
6
+ package generated .model ;
7
+
8
+ import com .fasterxml .jackson .annotation .JsonProperty ;
9
+
10
+ public class ParamResource {
11
+
12
+ @ JsonProperty ("prop" )
13
+ private String prop ;
14
+
15
+ public String getProp () {
16
+ return prop ;
17
+ }
18
+
19
+ public void setProp (String prop ) {
20
+ this .prop = prop ;
21
+ }
22
+
23
+ }
Original file line number Diff line number Diff line change
1
+ items :
2
+ - inputs/openapi.yaml
3
+ - inputs/mapping.yaml
Original file line number Diff line number Diff line change
1
+ openapi-processor-mapping : v2
2
+
3
+ options :
4
+ package-name : generated
5
+ model-name-suffix : Resource
Original file line number Diff line number Diff line change
1
+ openapi : 3.0.2
2
+ info :
3
+ title : model name suffix
4
+ version : 1.0.0
5
+
6
+ paths :
7
+
8
+ /foo :
9
+ get :
10
+ parameters :
11
+ - in : query
12
+ name : param
13
+ schema :
14
+ $ref : ' #/components/schemas/Param'
15
+ requestBody :
16
+ content :
17
+ application/json :
18
+ schema :
19
+ $ref : ' #/components/schemas/Body'
20
+ responses :
21
+ ' 200 ' :
22
+ description : the foo result
23
+ content :
24
+ application/json :
25
+ schema :
26
+ $ref : ' #/components/schemas/Foo'
27
+
28
+ components :
29
+ schemas :
30
+
31
+ Foo :
32
+ type : object
33
+ properties :
34
+ prop :
35
+ type : string
36
+ nested :
37
+ $ref : ' #/components/schemas/Bar'
38
+ inline :
39
+ type : object
40
+ properties :
41
+ prop :
42
+ type : string
43
+
44
+ Bar :
45
+ type : object
46
+ properties :
47
+ prop :
48
+ type : string
49
+
50
+ Param :
51
+ type : object
52
+ properties :
53
+ prop :
54
+ type : string
55
+
56
+ Body :
57
+ type : object
58
+ properties :
59
+ prop :
60
+ type : string
61
+
You can’t perform that action at this time.
0 commit comments