function
ValidateTaskReference
Validate a lifecycle-safe document reference.
Arguments
| Argument | Type | Description |
|---|---|---|
reference | DocumentReference | The stable collection identity and bounded non-empty document ID. |
Returns
Nil when valid or a bounded, actionable contract error.
errorHow it works
Custom TaskStore implementations should call this at their direct public boundary and still enforce the corresponding database invariants atomically.
Full signature
func ValidateTaskReference(reference DocumentReference) errorRelated types
DocumentReferenceCollection and document identity for framework-owned cleanup.