MSP-3809 Fix valid tags
This commit is contained in:
1 parent
3f1414006f
commit
1d2a13bb2c
2 files changed
+4
-4
No files matched your search
+1
-1
@@ -20,7 +20,7 @@ type Remote struct {
|
||||
LogLevel log.Level `schemaGen:"logLevel" schema:"Уровень логирования"`
|
||||
Scripts []ScriptDefinition
|
||||
SharedScript string
|
||||
ScriptExecutionTimeoutMs int `valid:"required"`
|
||||
ScriptExecutionTimeoutMs int `validate:"required"`
|
||||
}
|
||||
|
||||
type ScriptDefinition struct {
|
||||
|
||||
+3
-3
@@ -1,16 +1,16 @@
|
||||
package domain
|
||||
|
||||
type ExecuteByIdRequest struct {
|
||||
Id string `valid:"required"`
|
||||
Id string `validate:"required"`
|
||||
Arg interface{}
|
||||
}
|
||||
|
||||
type ExecuteRequest struct {
|
||||
Script string `valid:"required"`
|
||||
Script string `validate:"required"`
|
||||
Arg interface{}
|
||||
}
|
||||
|
||||
type BatchExecuteByIdsRequest struct {
|
||||
Ids []string `valid:"required"`
|
||||
Ids []string `validate:"required"`
|
||||
Arg interface{}
|
||||
}
|
||||
Reference in new issue
Block a user