Add Image property to model.Application
This commit is contained in:
parent
f9fe4427f0
commit
b738115b72
|
|
@ -1053,7 +1053,8 @@
|
|||
"id",
|
||||
"token",
|
||||
"name",
|
||||
"description"
|
||||
"description",
|
||||
"image"
|
||||
],
|
||||
"properties": {
|
||||
"description": {
|
||||
|
|
@ -1070,6 +1071,13 @@
|
|||
"readOnly": true,
|
||||
"example": 5
|
||||
},
|
||||
"image": {
|
||||
"description": "The image of the application.",
|
||||
"type": "string",
|
||||
"x-go-name": "Image",
|
||||
"readOnly": true,
|
||||
"example": "https://example.com/image.jpeg"
|
||||
},
|
||||
"name": {
|
||||
"description": "The application name. This is how the application should be displayed to the user.",
|
||||
"type": "string",
|
||||
|
|
|
|||
|
|
@ -29,5 +29,11 @@ type Application struct {
|
|||
// required: true
|
||||
// example: Backup server for the interwebs
|
||||
Description string `form:"description" query:"description" json:"description"`
|
||||
// The image of the application.
|
||||
//
|
||||
// read only: true
|
||||
// required: true
|
||||
// example: https://example.com/image.jpeg
|
||||
Image string `json:"image"`
|
||||
Messages []Message `json:"-"`
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue