Skip to content


Here are 3,169 public repositories matching this topic...

muhammadkholidb commented Oct 1, 2019

Package version eg. v8, v9:


Issue, Question or Enhancement:

Is it possible to use oneof validation with values containing space character? Tried with single quote but it did not seem to work.

Code sample, to showcase or reproduce:

type Data struct {
    Status string `json:"status" validate:"required,oneof='Awaiting Verification' 'Verified' 'Failed Veri

Improve this page

Add a description, image, and links to the validation topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the validation topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.