I'm trying to specify file input in swagger.
ImportUser:
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
File upload button is shownin editor, but I'm getting following error:
Structural error at components.schemas.ImportOperatorDevice.properties.csv_file.type should be equal to one of the allowed values allowedValues: array, boolean, integer, number, object, string