1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
use strict;
use warnings;
return [
[
name => "Itself::ComputedValue",
include => "Itself::MigratedValue" ,
element => [
allow_override => {
type => 'leaf',
value_type => 'boolean',
compute => {
formula => '$upstream_knowns',
variables => {
upstream_knowns => '- use_as_upstream_default',
},
use_as_upstream_default => 1,
},
level => 'normal',
description => "Allow user to override computed value"
.'For more details, see L<doc|Config::Model::ValueComputer.pm/"compute override"> ',,
},
use_as_upstream_default => {
type => 'leaf',
value_type => 'boolean',
upstream_default => 0,
level => 'normal',
description => "Indicate that the computed value is known by the "
."application and does not need to be written in the configuration file. Implies allow_override."
},
],
],
];
|