Fix linting

This commit is contained in:
Ivana Huckova
2022-06-09 15:40:10 +02:00
parent 763bbda241
commit e15c6a67bd
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -119,7 +119,7 @@ type SearchQueriesParams struct {
// in:query // in:query
// required: false // required: false
Page int `json:"page"` Page int `json:"page"`
// Limit the number of returned results // Limit the number of returned results
// in:query // in:query
// required: false // required: false
Limit int `json:"limit"` Limit int `json:"limit"`
@@ -137,21 +137,21 @@ type SearchQueriesParams struct {
type CreateQueryParams struct { type CreateQueryParams struct {
// in:body // in:body
// required:true // required:true
Body queryhistory.CreateQueryInQueryHistoryCommand `json:"body"` Body queryhistory.CreateQueryInQueryHistoryCommand `json:"body"`
} }
// swagger:parameters patchQueryComment // swagger:parameters patchQueryComment
type PatchQueryCommentParams struct { type PatchQueryCommentParams struct {
// in:body // in:body
// required:true // required:true
Body queryhistory.PatchQueryCommentInQueryHistoryCommand `json:"body"` Body queryhistory.PatchQueryCommentInQueryHistoryCommand `json:"body"`
} }
// swagger:parameters migrateQueries // swagger:parameters migrateQueries
type MigrateQueriesParams struct { type MigrateQueriesParams struct {
// in:body // in:body
// required:true // required:true
Body queryhistory.MigrateQueriesToQueryHistoryCommand `json:"body"` Body queryhistory.MigrateQueriesToQueryHistoryCommand `json:"body"`
} }
//swagger:response getQueryHistorySearchResponse //swagger:response getQueryHistorySearchResponse
+1 -1
View File
@@ -96,7 +96,7 @@ type CreateQueryInQueryHistoryCommand struct {
DatasourceUID string `json:"datasourceUid"` DatasourceUID string `json:"datasourceUid"`
// The JSON model of queries. // The JSON model of queries.
// required: true // required: true
// example: [ { "datasourceUid": "PE1C5CBDA0504A6A3", "queries": [ { "refId": "A", "key": "Q-87fed8e3-62ba-4eb2-8d2a-4129979bb4de-0", "scenarioId": "csv_content", "datasource": { "type": "testdata", "uid": "PD8C576611E62080A" } } ], "starred": false, "createdAt": 1643630762, "comment": "debugging" } ] // example: [ { "datasourceUid": "PE1C5CBDA0504A6A3", "queries": [ { "refId": "A", "key": "Q-87fed8e3-62ba-4eb2-8d2a-4129979bb4de-0", "scenarioId": "csv_content", "datasource": { "type": "testdata", "uid": "PD8C576611E62080A" } } ], "starred": false, "createdAt": 1643630762, "comment": "debugging" } ]
Queries *simplejson.Json `json:"queries"` Queries *simplejson.Json `json:"queries"`
} }