File tree Expand file tree Collapse file tree
openapi-processor-core/src/testInt/resources/tests/schema-composed-allof-notype Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ items :
2+ - generated/api/Api.java
3+ - generated/model/Foo.java
4+ - generated/model/AllOfNoTypeResponse200.java
5+ - generated/model/AllOfNoTypeResponse200Foo.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 generated .model .AllOfNoTypeResponse200 ;
10+
11+ public interface Api {
12+
13+ @ Mapping ("/all-of-no-type" )
14+ AllOfNoTypeResponse200 getAllOfNoType ();
15+
16+ }
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 AllOfNoTypeResponse200 {
11+
12+ @ JsonProperty ("foo" )
13+ private AllOfNoTypeResponse200Foo foo ;
14+
15+ public AllOfNoTypeResponse200Foo getFoo () {
16+ return foo ;
17+ }
18+
19+ public void setFoo (AllOfNoTypeResponse200Foo foo ) {
20+ this .foo = foo ;
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 AllOfNoTypeResponse200Foo {
11+
12+ @ JsonProperty ("foo" )
13+ private String foo ;
14+
15+ public String getFoo () {
16+ return foo ;
17+ }
18+
19+ public void setFoo (String foo ) {
20+ this .foo = foo ;
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 Foo {
11+
12+ @ JsonProperty ("foo" )
13+ private String foo ;
14+
15+ public String getFoo () {
16+ return foo ;
17+ }
18+
19+ public void setFoo (String foo ) {
20+ this .foo = foo ;
21+ }
22+
23+ }
Original file line number Diff line number Diff line change 1+ items :
2+ - inputs/openapi.yaml
Original file line number Diff line number Diff line change 1+ openapi : 3.0.2
2+ info :
3+ title : allOf of $ref and schema without type
4+ version : 1.0.0
5+
6+ paths :
7+ /all-of-no-type :
8+ get :
9+ responses :
10+ ' 200 ' :
11+ description : object response with allOf of $ref and schema without type
12+ content :
13+ application/json :
14+ schema :
15+ type : object
16+ properties :
17+ foo :
18+ allOf :
19+ - readOnly : true
20+ - $ref : ' #/components/schemas/Foo'
21+
22+ components :
23+ schemas :
24+
25+ Foo :
26+ type : object
27+ properties :
28+ foo :
29+ type : string
You can’t perform that action at this time.
0 commit comments