Skip to content
This repository was archived by the owner on Mar 16, 2025. It is now read-only.

Commit 577af49

Browse files
committed
#92, test case
1 parent 6a8b5ea commit 577af49

File tree

5 files changed

+48
-0
lines changed

5 files changed

+48
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
items:
2+
- generated/api/Api.java
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
10+
public interface Api {
11+
12+
@Mapping("/foo")
13+
Object getFoo();
14+
15+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
items:
2+
- inputs/openapi.yaml
3+
- inputs/mapping.yaml
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
openapi-processor-mapping: v2
2+
3+
options:
4+
package-name: generated
5+
6+
map:
7+
types:
8+
- type: AnyValue => java.lang.Object
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
openapi: 3.0.3
2+
info:
3+
title: test empty object
4+
version: 1.0.0
5+
6+
paths:
7+
8+
/foo:
9+
get:
10+
responses:
11+
'200':
12+
description: empty object result
13+
content:
14+
application/json:
15+
schema:
16+
$ref: '#/components/schemas/AnyValue'
17+
18+
components:
19+
schemas:
20+
AnyValue: {}

0 commit comments

Comments
 (0)