-
Notifications
You must be signed in to change notification settings - Fork 70
Open
Labels
bugSomething isn't workingSomething isn't working
Description
- Laravel Swagger Version: 0.6.0
- Laravel Version: 5.5.50
- PHP Version: 7.3.24
Description:
After I run the script, I get the following
"/archive/color/add": {
"post": {
"summary": "",
"description": "",
"deprecated": false,
"responses": {
"200": {
"description": "OK"
}
},
"parameters": [
{
"in": "body",
"name": "body",
"description": "",
"schema": {
"type": "object",
"required": [
"color_name",
"color_en_name",
"archive_status"
],
"properties": {
"color_name": {
"type": "string"
},
"color_en_name": {
"type": "string"
},
"color_value": {
"type": "string"
},
"color_remark": {
"type": "string"
},
"archive_status": {
"type": "string",
"enum": [
"enable",
"disable"
]
}
}
}
}
]
}
}
There is no parameter description and return value description.The result waht I want is like this:
"\/archive\/color\/add": {
"post": {
"summary": "",
"description": "",
"deprecated": false,
"responses": {
"200": {
"description": "OK",
"schema": {
"$schema": "http:\/\/json-schema.org\/draft-04\/schema#",
"type": "object",
"properties": {
"code": {
"type": "numeric",
"description": "description string",
"required": true
},
"msg": {
"type": "string",
"description": "description string",
"required": true
}
}
}
}
},
"parameters": [
{
"in": "body",
"name": "body",
"description": "",
"schema": {
"type": "object",
"required": [
"color_name",
"color_en_name",
"archive_status"
],
"properties": {
"color_name": {
"type": "string",
"description": "description string",
},
"color_en_name": {
"type": "string",
"description": "description string",
},
"color_value": {
"type": "string",
"description": "description string",
},
"color_remark": {
"type": "string",
"description": "description string",
},
"archive_status": {
"type": "string",
"description": "description string",
"enum": [
"enable",
"disable"
]
}
}
}
}
]
}
}
How can i do it?
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working