Skip to content

Commit

Permalink
fix: add multipart form-data nullable test case
Browse files Browse the repository at this point in the history
  • Loading branch information
kosa3 committed Sep 29, 2024
1 parent d0493ec commit e04ee2b
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions tests/specifications/null-type.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,27 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/NullableObject'
/nullable-with-multipart-form-data:
post:
tags:
- nullables
summary: Nullable with multipart/form-data request
operationId: NullableWithMultipartFormRequest
requestBody:
content:
multipart/form-data:
schema:
$ref: '#/components/schemas/MultipartFormDataNullableRequest'
responses:
200:
description: Successful Operation
content:
application/json:
schema:
name:
type:
- 'string'
- 'null'
components:
schemas:
NullableObject:
Expand All @@ -62,3 +83,10 @@ components:
BlankEnum:
enum:
- ''
MultipartFormDataNullableRequest:
type: object
properties:
name:
type:
- 'string'
- 'null'

0 comments on commit e04ee2b

Please sign in to comment.