Skip to content

Commit 0edec78

Browse files
committed
Add test-case for additional-properties-in-multipart-issue
1 parent 23eff66 commit 0edec78

2 files changed

Lines changed: 63 additions & 0 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
generatorName: typescript-fetch
2+
outputDir: samples/client/others/typescript-fetch/additional-properties-in-multipart-issue
3+
inputSpec: modules/openapi-generator/src/test/resources/3_0/typescript-fetch/additional-properties-in-multipart-issue.yaml
4+
templateDir: modules/openapi-generator/src/main/resources/typescript-fetch
5+
additionalProperties:
6+
enumPropertyNaming: "original"
7+
enumUnknownDefaultCase: 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)