riverqueue / riverui

A web interface for River, fast and reliable background jobs in Go.
https://ui.riverqueue.com/
Mozilla Public License 2.0
43 stars 3 forks source link

Translate `oneof` validation to a user-facing error message #81

Closed brandur closed 3 days ago

brandur commented 3 days ago

A small one that I forgot to add to #78. The list endpoint uses a oneof validation to verify that a valid job state is sent with the state parameter. Here, make sure that a oneof validation is translated to a nice user-facing error message.

brandur commented 3 days ago

ty.