File tree Expand file tree Collapse file tree
openapi-processor-core/src/testInt/resources/tests/response-multi-mapping-with-array-type-mapping 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
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 .Foo ;
10+ import reactor .core .publisher .Flux ;
11+
12+ public interface Api {
13+
14+ @ Mapping ("/foo" )
15+ Flux <Foo > getFoo ();
16+
17+ }
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 ("bar" )
13+ private String bar ;
14+
15+ public String getBar () {
16+ return bar ;
17+ }
18+
19+ public void setBar (String bar ) {
20+ this .bar = bar ;
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+
6+ map :
7+ multi : reactor.core.publisher.Flux
8+
9+ types :
10+ - type : array => java.util.List
Original file line number Diff line number Diff line change 1+ openapi : 3.0.2
2+ info :
3+ title : test template
4+ version : 1.0.0
5+
6+ paths :
7+
8+ /foo :
9+ get :
10+ responses :
11+ ' 200 ' :
12+ description : the foo result
13+ content :
14+ application/json :
15+ schema :
16+ type : array
17+ items :
18+ $ref : ' #/components/schemas/Foo'
19+
20+ components :
21+ schemas :
22+
23+ Foo :
24+ type : object
25+ properties :
26+ bar :
27+ type : string
You can’t perform that action at this time.
0 commit comments