jackdelahunt / survey-json-schema

golang survey tooling to fullfill JSON schema requirements
Apache License 2.0
2 stars 1 forks source link

add support for arrays #17

Open jaketf opened 2 years ago

jaketf commented 2 years ago

It'd be useful for this tool to support to arrays with some sort of flow to recurse into an array with an "add another" prompt once each array item has been fully recursively filled out? It's not the greatest user experience to have many layers of nesting but being able to have an array of fairly flat objects would be pretty helpful.

wtrocki commented 2 years ago

I believe we support string array (multichoice)

Generic array will be tricky but possible

jackdelahunt commented 2 years ago

Hey @jaketf thanks for leaving an issue. Are you suggesting that the user is prompted to add elements (recursively) to an array as much as they want until they select that they do not want to anymore?

wtrocki commented 2 years ago

We do support arrays (of enums, string etc.) Arrays of objects can be easily added. Contributions are welcomed