diff --git a/internal/httpapi/server.go b/internal/httpapi/server.go index 443db8b..9056a8a 100644 --- a/internal/httpapi/server.go +++ b/internal/httpapi/server.go @@ -1678,7 +1678,7 @@ func getReleaseBatch(w http.ResponseWriter, r *http.Request, store Store) { func listTestPublications(w http.ResponseWriter, r *http.Request, store Store) { filter := governance.TestPublicationFilter{ProcessingState: r.URL.Query().Get("processing_state"), TargetScope: r.URL.Query().Get("target_scope"), Limit: 50} if filter.ProcessingState != "" && !validProcessingState(filter.ProcessingState) { - writeJSON(w, http.StatusBadRequest, map[string]string{"error": "processing_state must be pending, processing, finalizing, completed, failed, or stalled"}) + writeJSON(w, http.StatusBadRequest, map[string]string{"error": "processing_state must be planned, pending, processing, finalizing, completed, failed, or stalled"}) return } if filter.TargetScope != "" && filter.TargetScope != "internal" && filter.TargetScope != "external" { @@ -1932,7 +1932,7 @@ func decodeStrictJSON(r *http.Request, destination any) error { func validProcessingState(state string) bool { switch state { - case "pending", "processing", "finalizing", "completed", "failed", "stalled": + case "planned", "pending", "processing", "finalizing", "completed", "failed", "stalled": return true default: return false