I'm not really finding good sources for help with defining json schema rules, so I thought I'd ask here.
I'd like to update our current boot-linaro-image action in the lava-dispatcher to take a new optional parameter called "boot_options", eg:
{ "command": "boot_linaro_image", "parameters": { "options": [ "coretile.cache_state_modelled=1" ] } }
I tried to do this by updating parameters_schema in boot_control.py with:
+_boot_schema = { + 'type': 'object', + 'properties': { + 'options': {'type': 'array', 'items': {'type': 'string'}, + 'optional': True}, + }, + 'additionalProperties': False, + }
However, now "parameters" is always required which we would be horrible for backward compatibility. Anybody know how I should go about this?
-andy