package rest

// validateID checks if the provided ID is a non-empty, reasonable format.
// It accepts UUIDs, Salesforce-style IDs, and alphanumeric IDs with underscore
// or hyphen. Storage and ownership checks remain in the domain layer.
func validateID(id string) bool {
	if len(id) == 0 || len(id) > 255 {
		return false
	}
	for _, c := range id {
		if !((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9') || c == '-' || c == '_') {
			return false
		}
	}
	return true
}
