feat(registry): validate unique addresses and routes
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
{ lib, ... }:
|
||||
{
|
||||
type = lib.types.str;
|
||||
|
||||
validate = lib.registry.validators.uniqueValue {
|
||||
value = entry: entry.value;
|
||||
message = "Address registry values must be unique.";
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
{ lib, ... }:
|
||||
{
|
||||
validate = lib.registry.validators.uniqueValue {
|
||||
value = entry: entry.value.domain;
|
||||
message = "Route domains must be unique.";
|
||||
};
|
||||
|
||||
type = lib.types.submodule {
|
||||
options = {
|
||||
domain = lib.mkOption {
|
||||
|
||||
Reference in New Issue
Block a user