Skip to content

Commit 72337a5

Browse files
committed
delete old sample files
1 parent ef44359 commit 72337a5

35 files changed

Lines changed: 387 additions & 1619 deletions

.github/workflows/samples-spring.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
- samples/server/petstore/spring-boot-defaultInterface-unhandledExcp
4646
- samples/server/petstore/springboot
4747
- samples/server/petstore/springboot-byte-format-edge-cases
48+
- samples/server/petstore/springboot-byte-format-edge-cases-reactive
4849
- samples/server/petstore/springboot-beanvalidation
4950
- samples/server/petstore/springboot-builtin-validation
5051
- samples/server/petstore/springboot-delegate
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
generatorName: spring
2+
outputDir: samples/server/petstore/springboot-byte-format-edge-cases-reactive
3+
inputSpec: modules/openapi-generator/src/test/resources/3_0/spring/byte-format-edge-cases.yaml
4+
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
5+
additionalProperties:
6+
artifactId: springboot
7+
snapshotVersion: "true"
8+
hideGenerationTimestamp: "true"
9+
reactive: true

modules/openapi-generator/src/test/java/org/openapitools/codegen/java/spring/SpringCodegenTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,7 @@ public void testSchemaImplements() throws IOException {
879879
public void shouldHandleFormatByteCorrectlyForAllApiParametersAndProperties() throws IOException {
880880
final SpringCodegen codegen = new SpringCodegen();
881881

882-
final Map<String, File> files = generateFiles(codegen, "src/test/resources/3_0/spring/byte-format-edge-cases.yaml");
882+
final Map<String, File> files = generateFiles(codegen, "src/test/resources/3_0/spring/byte-format-baseline.yaml");
883883
// Query parameters: both plain text and Base64-encoded fields are mapped to String
884884
JavaFileAssert.assertThat(files.get("QueryApi.java"))
885885
.assertMethod("queryParams")
Lines changed: 157 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
openapi: 3.0.3
2+
info:
3+
title: Byte Format Edge Cases
4+
version: 1.0.0
5+
6+
paths:
7+
/query:
8+
get:
9+
operationId: queryParams
10+
summary: Query parameters
11+
parameters:
12+
- name: plain
13+
in: query
14+
schema:
15+
type: string
16+
- name: bytes
17+
in: query
18+
schema:
19+
type: string
20+
format: byte
21+
responses:
22+
'204':
23+
description: No content
24+
25+
/path/{plain}/{bytes}:
26+
get:
27+
operationId: pathParams
28+
summary: Path parameters
29+
parameters:
30+
- name: plain
31+
in: path
32+
required: true
33+
schema:
34+
type: string
35+
- name: bytes
36+
in: path
37+
required: true
38+
schema:
39+
type: string
40+
format: byte
41+
responses:
42+
'204':
43+
description: No content
44+
45+
/header:
46+
get:
47+
operationId: headerParams
48+
summary: Header parameters
49+
parameters:
50+
- name: X-Plain
51+
in: header
52+
schema:
53+
type: string
54+
- name: X-Byte
55+
in: header
56+
schema:
57+
type: string
58+
format: byte
59+
responses:
60+
'204':
61+
description: No content
62+
63+
/cookie:
64+
get:
65+
operationId: cookieParams
66+
summary: Cookie parameters
67+
parameters:
68+
- name: plain
69+
in: cookie
70+
schema:
71+
type: string
72+
- name: bytes
73+
in: cookie
74+
schema:
75+
type: string
76+
format: byte
77+
responses:
78+
'204':
79+
description: No content
80+
81+
/form:
82+
post:
83+
operationId: formParams
84+
summary: application/x-www-form-urlencoded
85+
requestBody:
86+
required: true
87+
content:
88+
application/x-www-form-urlencoded:
89+
schema:
90+
type: object
91+
properties:
92+
plain:
93+
type: string
94+
bytes:
95+
type: string
96+
format: byte
97+
responses:
98+
'204':
99+
description: No content
100+
101+
/multipart:
102+
post:
103+
operationId: multipartParams
104+
summary: multipart/form-data
105+
requestBody:
106+
required: true
107+
content:
108+
multipart/form-data:
109+
schema:
110+
type: object
111+
properties:
112+
plain:
113+
type: string
114+
bytes:
115+
type: string
116+
format: byte
117+
file:
118+
type: string
119+
format: binary
120+
responses:
121+
'204':
122+
description: No content
123+
124+
/json-body:
125+
post:
126+
operationId: jsonBody
127+
summary: JSON request body
128+
requestBody:
129+
required: true
130+
content:
131+
application/json:
132+
schema:
133+
type: object
134+
properties:
135+
plain:
136+
type: string
137+
bytes:
138+
type: string
139+
format: byte
140+
responses:
141+
'204':
142+
description: No content
143+
144+
/binary-body:
145+
post:
146+
operationId: binaryBody
147+
summary: Raw binary body
148+
requestBody:
149+
required: true
150+
content:
151+
application/octet-stream:
152+
schema:
153+
type: string
154+
format: binary
155+
responses:
156+
'204':
157+
description: No content

0 commit comments

Comments
 (0)