Skip to content

Commit f4a10f8

Browse files
committed
new test case
1 parent 6a9313b commit f4a10f8

7 files changed

Lines changed: 121 additions & 0 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
items:
2+
- generated/api/Api.java
3+
- generated/model/Foo.java
4+
- generated/model/AllOfNoTypeResponse200.java
5+
- generated/model/AllOfNoTypeResponse200Foo.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.AllOfNoTypeResponse200;
10+
11+
public interface Api {
12+
13+
@Mapping("/all-of-no-type")
14+
AllOfNoTypeResponse200 getAllOfNoType();
15+
16+
}
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 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 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 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+
}
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("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+
}
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: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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

0 commit comments

Comments
 (0)