Skip to content

Commit b58c666

Browse files
committed
1 parent 9b49c10 commit b58c666

File tree

6 files changed

+55
-0
lines changed

6 files changed

+55
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
prefix: api
2+
items:
3+
- inputs/openapi30.yaml
4+
- inputs/openapi31.yaml
5+
- inputs/mapping.yaml
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
openapi-processor-mapping: v13
2+
3+
options:
4+
package-name: generated
5+
format-code: false
6+
7+
map:
8+
result-style: success
9+
result-status: true
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
openapi: 3.0.2
2+
info:
3+
title: response status
4+
version: 1.0.0
5+
6+
paths:
7+
8+
/foo:
9+
get:
10+
responses:
11+
'204':
12+
description: empty
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
openapi: 3.1.0
2+
info:
3+
title: response status
4+
version: 1.0.0
5+
6+
paths:
7+
8+
/foo:
9+
get:
10+
responses:
11+
'204':
12+
description: empty
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
prefix: generated
2+
items:
3+
- outputs/api/Api.java
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package generated.api;
2+
3+
import annotation.Mapping;
4+
import annotation.Status;
5+
import generated.support.Generated;
6+
7+
@Generated(value = "openapi-processor-core", version = "test")
8+
public interface Api {
9+
10+
@Status("204")
11+
@Mapping("/foo")
12+
void getFoo();
13+
14+
}

0 commit comments

Comments
 (0)