Skip to content

Commit 153a393

Browse files
committed
#86, test case
1 parent 3987000 commit 153a393

6 files changed

Lines changed: 101 additions & 0 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
items:
2+
- generated/api/Api.java
3+
- generated/model/QueryGetResponse200.java
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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.QueryGetResponse200;
10+
11+
public interface Api {
12+
13+
@Mapping("/query")
14+
QueryGetResponse200 getQuery();
15+
16+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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 numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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 QueryGetResponse200 {
11+
12+
@JsonProperty("prop2")
13+
private String prop2;
14+
15+
@JsonProperty("prop1")
16+
private String prop1;
17+
18+
public String getProp2() {
19+
return prop2;
20+
}
21+
22+
public void setProp2(String prop2) {
23+
this.prop2 = prop2;
24+
}
25+
26+
public String getProp1() {
27+
return prop1;
28+
}
29+
30+
public void setProp1(String prop1) {
31+
this.prop1 = prop1;
32+
}
33+
34+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
items:
2+
- inputs/openapi.yaml
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
openapi: 3.0.2
2+
info:
3+
title: merge allOf & properties into same object
4+
version: 1.0.0
5+
6+
paths:
7+
/query:
8+
get:
9+
responses:
10+
'200':
11+
description: create result from allOf object & object properties
12+
content:
13+
application/json:
14+
schema:
15+
type: object
16+
allOf:
17+
- type: object
18+
properties:
19+
prop1:
20+
type: string
21+
properties:
22+
prop2:
23+
type: string

0 commit comments

Comments
 (0)