func checkValidID(value interface{}) error {

	reservedIDs := []string{"links", "create", "version", "status", "health", "edit", "api"}

	s, _ := value.(string)
	idRegEx := regexp.MustCompile("^[a-zA-Z0-9_-]+$")
	if !idRegEx.MatchString(s) {
		return errors.New("id is restricted to alphanumeric characters, dashes, and underscores only")
	}

	for _, id := range reservedIDs {
		if s == id {
			return errors.New("requested id is reserved and cannot be used")
		}
	}

	return nil
}
// checkValidID checks for a valid short name
// an ID can only comprise of AlphaNumeric characters and + or _
checkValidID checks for a valid short name
an ID can only comprise of AlphaNumeric characters and + or _
// checkValidID checks for a valid short name // an ID can only comprise of AlphaNumeric characters and + or _
func checkValidID(value interface{}) error {
	reservedIDs := []string{"links", "create", "version", "status", "health", "edit", "api"}
	s, _ := value.(string)
	idRegEx := regexp.MustCompile("^[a-zA-Z0-9_-]+$")
	if !idRegEx.MatchString(s) {
		return errors.New("id is restricted to alphanumeric characters, dashes, and underscores only")
	}
	for _, id := range reservedIDs {
		if s == id {
			return errors.New("requested id is reserved and cannot be used")
		}
	}
	return nil
}
func checkValidID ( value interface { } ) error { reservedIDs := [ ] string { " " , " " , " " , " " , " " , " " , " " } s , _ := value . ( string ) idRegEx := regexp . MustCompile ( " " ) if ! idRegEx . MatchString ( s ) { return errors . New ( " " ) } for _ , id := range reservedIDs { if s == id { return errors . New ( " " ) } } return nil }
checkValidID checks for a valid short name
an ID can only comprise of AlphaNumeric characters and + or _
checkValidID checks for a valid short name an ID can only comprise of AlphaNumeric characters and + or _