Add associative map constraints and range refinement
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
let
|
||||
Service = {
|
||||
port = Int & >= 1 & <= 65535;
|
||||
enabled = Bool default true;
|
||||
};
|
||||
in
|
||||
{
|
||||
api = {
|
||||
port = 8080;
|
||||
};
|
||||
worker = {
|
||||
port = 8081;
|
||||
enabled = false;
|
||||
};
|
||||
} as {...Service}
|
||||
Reference in New Issue
Block a user