[Feature] Variables Definitions
Opened this issue · 1 comments
DisasteR commented
Allow definition of variables to be reused in all the configuration.
Look at https://github.com/gazpachoking/jsonref It allow ref expansion.
ex :
{
"easyucs": {
"variables": {
"password": "supersecurepassword",
"anothervar": "myothervar",
},
...
},
...
"pasword" : {"$ref": "#/easyucs/variables/password"}
...
for simplicity i have not encapsulated "variables" dictionary in a list.
variables can be expanded just before calling _validate_config_from_json
responssible of json schema validation.
vesposito commented
Sounds like an easy way to implement variables indeed. I'll have a look and keep you posted