098871e3d8
* Extract validation and reject invalid policies
* Validation in dedicated file
* Tests for validation
* Extract root route validation
* Update call and drop TODO
* empty commit to kick actions
* Normalization should be idempotent
* Cleaner representation of validation errors, chain errors properly
* Make internal validate unexported
* Fix missed rename
* Genericize error message
* Improve method names
* Rebase, fix
* Update asserts
(cherry picked from commit 60ec10566f)
Co-authored-by: Alexander Weaver <weaver.alex.d@gmail.com>