We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Looks like this is the only way, which is really messy.
.array('strings', { type: new Parser() .string('text', { length: 64, stripNull: true }), length: 'stringCount' })
That would result in something like this:
"strings": [ { "text": "hello" }, ... ]
Something more ideal would just be an actual array of strings:
"strings": [ "Hello", ... ]
The text was updated successfully, but these errors were encountered:
.array('strings', { type: new Parser() .string('text', { length: 64, stripNull: true }), length: 'stringCount', formatter: arr => arr.map(item => item.text) })
The only way I see tbh (but it works!)
Sorry, something went wrong.
Just made this "workaround" for the array of strings, but an options to actually make a proper array of strings would be very welcome!
No branches or pull requests
Looks like this is the only way, which is really messy.
That would result in something like this:
Something more ideal would just be an actual array of strings:
The text was updated successfully, but these errors were encountered: