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:"Уровень логирования"`
|
LogLevel log.Level `schemaGen:"logLevel" schema:"Уровень логирования"`
|
||||||
Scripts []ScriptDefinition
|
Scripts []ScriptDefinition
|
||||||
SharedScript string
|
SharedScript string
|
||||||
ScriptExecutionTimeoutMs int `valid:"required"`
|
ScriptExecutionTimeoutMs int `validate:"required"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ScriptDefinition struct {
|
type ScriptDefinition struct {
|
||||||
|
|||||||
+3
-3
@@ -1,16 +1,16 @@
|
|||||||
package domain
|
package domain
|
||||||
|
|
||||||
type ExecuteByIdRequest struct {
|
type ExecuteByIdRequest struct {
|
||||||
Id string `valid:"required"`
|
Id string `validate:"required"`
|
||||||
Arg interface{}
|
Arg interface{}
|
||||||
}
|
}
|
||||||
|
|
||||||
type ExecuteRequest struct {
|
type ExecuteRequest struct {
|
||||||
Script string `valid:"required"`
|
Script string `validate:"required"`
|
||||||
Arg interface{}
|
Arg interface{}
|
||||||
}
|
}
|
||||||
|
|
||||||
type BatchExecuteByIdsRequest struct {
|
type BatchExecuteByIdsRequest struct {
|
||||||
Ids []string `valid:"required"`
|
Ids []string `validate:"required"`
|
||||||
Arg interface{}
|
Arg interface{}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user