func (v *validator) checkInVocab(attributeName string, attributeValue interface{}) error {
	validValues, ok := v.vocab[resolveAlias(attributeName)]
	if !ok {
		return nil
	}
	for _, validValue := range validValues {
		if coerce(validValue) == coerce(attributeValue) {
			return nil
		}
	}
	return fmt.Errorf(
		"invalid constraint value: %v=%v\nvalid values are: %v", attributeName, attributeValue, validValues)
}
// checkInVocab returns an error if the attribute value is not allowed by the
// vocab which may have been registered for it.
checkInVocab returns an error if the attribute value is not allowed by the
vocab which may have been registered for it.
// checkInVocab returns an error if the attribute value is not allowed by the // vocab which may have been registered for it .
func (v *validator) checkInVocab(attributeName string, attributeValue interface{}) error {
	validValues, ok := v.vocab[resolveAlias(attributeName)]
	if !ok {
		return nil
	}
	for _, validValue := range validValues {
		if coerce(validValue) == coerce(attributeValue) {
			return nil
		}
	}
	return fmt.Errorf(
		"invalid constraint value: %v=%v\nvalid values are: %v", attributeName, attributeValue, validValues)
}
func ( v * validator ) checkInVocab ( attributeName string , attributeValue interface { } ) error { validValues , ok := v . vocab [ resolveAlias ( attributeName ) ] if ! ok { return nil } for _ , validValue := range validValues { if coerce ( validValue ) == coerce ( attributeValue ) { return nil } } return fmt . Errorf ( " \n " , attributeName , attributeValue , validValues ) }
checkInVocab returns an error if the attribute value is not allowed by the
vocab which may have been registered for it.
checkInVocab returns an error if the attribute value is not allowed by the vocab which may have been registered for it .