Varargs-like representation

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" ]
                }
              }

Hi @sperok,

In our current off-the-shelf renderer we don’t support mixed types. For this you need to implement custom renderers. Note that for the Vue Vuetify renderer set there is a community contribution in process which will add support for them.

However you might want to consider to model the command line parameters as an array of “string” as it’s text based anyway.

thanks. Unfortunately the interface is to a set of legacy functions that are just going to need wrappers