normalization library
Legacy barrel export for shared normalization helpers.
Kept for backwards compatibility while the validation module evolves.
Classes
- UyavaColorNormalizationResult
- UyavaShapeNormalizationResult
- UyavaTagNormalizationResult
- Shared normalization helpers used across the Uyava SDK, protocol, and core.
Functions
-
normalizeColor(
Object? raw) → UyavaColorNormalizationResult -
Accepts raw color payloads, enforcing
#RRGGBBor#AARRGGBB. -
normalizeShape(
Object? raw) → UyavaShapeNormalizationResult -
Accepts lowercase identifiers matching
^[a-z0-9_-]+$. -
normalizeTags(
Object? raw) → UyavaTagNormalizationResult - Normalizes tag payloads by trimming, removing empties/non-strings, and de-duplicating case-insensitively while preserving first-seen ordering.