File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,11 @@ PropertyTree buildConfigSchema()
1212 auto & cfg = schema.get (" config" );
1313 cfg.setAttribute (" description" , " Main config for plugin" );
1414 cfg.setAttribute (" required" , true );
15+ std::map<int , std::string> return_options;
16+ return_options[0 ] = " Error" ;
17+ return_options[1 ] = " Successful" ;
18+ cfg.setAttribute (" return_options" , YAML::Node (return_options));
19+ cfg.addValidator (validateRequired);
1520
1621 // conditional
1722 {
@@ -20,7 +25,7 @@ PropertyTree buildConfigSchema()
2025 prop.setAttribute (" default" , true );
2126 prop.setAttribute (" description" , " Enable conditional execution" );
2227 prop.setAttribute (" required" , true );
23- // node .addValidator(validateRange );
28+ prop .addValidator (validateRequired );
2429 }
2530 // inputs
2631 {
You can’t perform that action at this time.
0 commit comments