Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vue版本中不能正确的判断类型 #876

Open
766187397 opened this issue Dec 24, 2024 · 0 comments
Open

vue版本中不能正确的判断类型 #876

766187397 opened this issue Dec 24, 2024 · 0 comments

Comments

@766187397
Copy link

{
"openapi": "3.0.0",
"info": {
"title": "NestJS API",
"description": "NestJS API description",
"version": "1.0",
"contact": {}
},
"servers": [],
"paths": {
"/api/upload/file": {
"post": {
"operationId": "UploadController_uploadFile",
"parameters": [],
"requestBody": {
"required": true,
"description": "文件上传",
"content": {
"multipart/form-data": {
"schema": {
"$ref": "#/components/schemas/FileUploadDTO"
}
}
}
},
"responses": {
"201": {
"description": ""
}
},
"summary": "文件上传",
"tags": [
"文件上传"
]
}
}
},
"components": {
"FileUploadDTO": {
"type": "object",
"properties": {
"file": {
"type": "string",
"format": "binary"
}
},
"required": [
"file"
]
}
}
}

请求类型得到的却是:application/json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant