refactor(types,register): introduce IdUrl and related types into submod

- `IdUrl` does basic validation for identity URL. Server could enforce
  additional restrictions on their own need.

- single-label doamins are now rejected by default.

- More tests are added for `IdUrl` validation.
This commit is contained in:
oxalica 2024-09-19 01:41:02 -04:00
parent 25936cc4f7
commit fac380fe55
7 changed files with 262 additions and 81 deletions

1
Cargo.lock generated
View file

@ -282,6 +282,7 @@ dependencies = [
"serde_jcs",
"serde_json",
"serde_with",
"thiserror",
"url",
]