我正在尝试以大摇大摆的方式指定文件输入。
导入用户:
properties:
user_type_id:
description: ID of the related user type
type: integer
format: int32
example: '1'
nullable: false
csv_file:
description: CSV file
type: **file**
skip_first_row:
description: Identify whether first row should be skipped
type: string
format: unique
maxLength: 100
minLength: 1
example: '1'
nullable: false
type: object
文件上传按钮显示在编辑器中,但出现以下错误:
components.schemas.ImportOperatorDevice.properties.csv_file.type 的结构错误应等于允许的值之一 allowedValues:数组、布尔值、整数、数字、对象、字符串