zema_firestore 0.1.0
zema_firestore: ^0.1.0 copied to clipboard
Zema schema validation integration for Cloud Firestore. Type-safe document parsing via withConverter.
0.1.0 #
- Initial release.
withZema(schema)extension onCollectionReference,DocumentReference, andQuery.ZemaFirestoreConverter<T>— hooks into FirestorewithConverter, injects document ID, convertsDateTimetoTimestampon writes.- Firebase-specific schemas:
zTimestamp(),zGeoPoint(),zDocumentRef(),zBlob(). ZemaFirestoreExceptionwith document path, ID, andList<ZemaIssue>.onParseErrorcallback for graceful fallback on schema mismatch.