is there an easy way to capture arbiitrary command line parameters that may contain integers or strings? I’m working with legacy code and can’t change the calling conventions. Typically:
cmd [ arg1, arg2, …, argn ]
the schema below validates but won’t render by default. using “oneof” in the args aray renders suboptimally with tabs for each option. using rules might work for a limited set of commands.
"type": "object",
"properties": {
"command": {
"type": "string",
},
"args": {
"type": "array",
"items": {
"type": [ "string", "integer" ]
}
}