mirror of
https://github.com/kennethreitz/pydantic.git
synced 2026-06-05 23:00:18 +00:00
22f134475d
* Color validator MVP * Color Validator refactored * Small optimizations applied * Code coverage improved * hex processing improved, json encoder and repr added * Add documentation, update HISTORY (#504) * Increase test coverage (#504) * hex helpers refactored (#504) * Fixes after code review (#509) * Color Type section in docs reduced * Check for valid but unnamed colors * Minor fixes: typo in docs, default value for float comparison function * rewrite Color * fix color tests * tweaks and improve docs * tweaks and change Color.__str__ * add as_hsla and as_hsl * support more rgb(a) formats * add hsl parsing * parsing hex with alpha channel * fix hsl parsing * simpler failure/fallback rules for color display * storage as floats internally * tweak docs * fix type hints