fix: multipart enum initial value not set (#7004)

This commit is contained in:
Mahtis Michel
2021-03-03 21:49:56 +01:00
committed by GitHub
parent d32bd1ab7c
commit 68bd61a682
3 changed files with 61 additions and 6 deletions

View File

@@ -0,0 +1,29 @@
openapi: 3.0.3
info:
title: asd
version: 0.0.1
paths:
/test:
post:
requestBody:
content:
multipart/form-data:
schema:
$ref: '#/components/schemas/TestBody'
responses:
200:
description: ok
components:
schemas:
TestBody:
required:
- test_enum
type: object
properties:
test_enum:
allOf:
- $ref: "#/components/schemas/TestEnum"
TestEnum:
enum:
- A
- B