Commit ae7b8817 authored by Sonja Happ's avatar Sonja Happ
Browse files

Component Config: selected file ID is signed integer instead of uint (follow up for validators)

parent e6b42ba6
...@@ -35,14 +35,14 @@ type validNewConfig struct { ...@@ -35,14 +35,14 @@ type validNewConfig struct {
ScenarioID uint `form:"ScenarioID" validate:"required"` ScenarioID uint `form:"ScenarioID" validate:"required"`
ICID uint `form:"ICID" validate:"required"` ICID uint `form:"ICID" validate:"required"`
StartParameters postgres.Jsonb `form:"StartParameters" validate:"required"` StartParameters postgres.Jsonb `form:"StartParameters" validate:"required"`
SelectedFileID uint `form:"SelectedFileID" validate:"omitempty"` SelectedFileID int `form:"SelectedFileID" validate:"omitempty"`
} }
type validUpdatedConfig struct { type validUpdatedConfig struct {
Name string `form:"Name" validate:"omitempty"` Name string `form:"Name" validate:"omitempty"`
ICID uint `form:"ICID" validate:"omitempty"` ICID uint `form:"ICID" validate:"omitempty"`
StartParameters postgres.Jsonb `form:"StartParameters" validate:"omitempty"` StartParameters postgres.Jsonb `form:"StartParameters" validate:"omitempty"`
SelectedFileID uint `form:"SelectedFileID" validate:"omitempty"` SelectedFileID int `form:"SelectedFileID" validate:"omitempty"`
} }
type addConfigRequest struct { type addConfigRequest struct {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment