Skip to content

Commit bfe2fe9

Browse files
committed
Add test-case for additional-properties-in-multipart-issue-java-resttemplate
1 parent 23eff66 commit bfe2fe9

File tree

2 files changed

+65
-0
lines changed

2 files changed

+65
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
generatorName: java
2+
outputDir: samples/client/others/java/resttemplate-additonal-properties-in-multipart-request-issue
3+
library: resttemplate
4+
inputSpec: modules/openapi-generator/src/test/resources/3_0/java/resttemplate/additonal-properties-in-multipart-request-issue.yaml
5+
templateDir: modules/openapi-generator/src/main/resources/Java
6+
additionalProperties:
7+
artifactId: additonal-properties-in-multipart-request-issue
8+
hideGenerationTimestamp: "true"
9+
java8: true
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
openapi: 3.0.3
2+
info:
3+
title: Minimal
4+
description: Api to reproduce bug
5+
version: 0.5.1-SNAPSHOT.0
6+
tags:
7+
- name: test
8+
servers:
9+
- url: http://localhost:8080
10+
paths:
11+
"/api/v1/file":
12+
post:
13+
tags:
14+
- file
15+
operationId: createFile
16+
requestBody:
17+
required: true
18+
content:
19+
multipart/form-data:
20+
schema:
21+
$ref: "#/components/schemas/FileUploadRequest"
22+
encoding:
23+
documentBytes:
24+
contentType: "*/*"
25+
properties:
26+
contentType: application/json
27+
responses:
28+
"201":
29+
description: File created successfully
30+
components:
31+
schemas:
32+
FileUploadRequest:
33+
type: object
34+
properties:
35+
documentBytes:
36+
type: string
37+
format: binary
38+
documentType:
39+
type: string
40+
structured:
41+
$ref: '#/components/schemas/StructuredType'
42+
properties:
43+
$ref: '#/components/schemas/TypeMap'
44+
required:
45+
- documentBytes
46+
- documentType
47+
- properties
48+
TypeMap:
49+
type: object
50+
additionalProperties:
51+
type: string
52+
StructuredType:
53+
type: object
54+
properties:
55+
someString:
56+
type: string

0 commit comments

Comments
 (0)