MSP-4622 schema tags
This commit is contained in:
1 parent
b2fc484c0d
commit
70dff2aed7
1 file changed
+5
-5
+5
-5
@@ -17,11 +17,11 @@ func init() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type Remote struct {
|
type Remote struct {
|
||||||
LogLevel log.Level `schemaGen:"logLevel" schema:"Уровень логирования"`
|
LogLevel log.Level `schemaGen:"logLevel" schema:"Уровень логирования"`
|
||||||
Scripts []ScriptDefinition
|
Scripts []ScriptDefinition `schemaGen:"scripts" schema:"Скрипты"`
|
||||||
CustomScripts []ScriptDefinition
|
CustomScripts []ScriptDefinition `schemaGen:"customScripts" schema:"Кастомные скрипты"`
|
||||||
SharedScript string
|
SharedScript string `schema:"Общий скрипт"`
|
||||||
ScriptExecutionTimeoutMs int `validate:"required"`
|
ScriptExecutionTimeoutMs int `validate:"required" schema:"Время выполнения скрипта"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ScriptDefinition struct {
|
type ScriptDefinition struct {
|
||||||
|
|||||||
Reference in new issue
Block a user