~mil/mobroute

6b2b13abfc6cc9be6cfc3dfae7dac43bc737f173 — Miles Alan 2 months ago 8aecd9c
Add missing purge_all option to mobsql cli validator
1 files changed, 1 insertions(+), 1 deletions(-)

M api/apioneshot/types.go
M api/apioneshot/types.go => api/apioneshot/types.go +1 -1
@@ 16,7 16,7 @@ type OneshotRouteRequest struct {
type OneshotMobsqlRequest struct {
	MobrouteRuntimeConfig *apirtinit.MobrouteRuntimeConfig `json:"mobroute_runtime_config"`
	MobsqlParams          *struct {
		Operation string `json:"op" validate:"required,oneof=status load compute purge_gtfs purge_computed"`
		Operation string `json:"op" validate:"required,oneof=status load compute purge_gtfs purge_computed purge_all"`
		FeedIDs   []int  `json:"feed_ids" validate:"required,gt=0"`
	} `json:"mobsql_params" validate:"required"`
}