You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
parameters:
- in: "body"
name: "body"
description: "JSON array of words to add to the corpus"
required: true
schema:
type: "object"
required:
- words
properties:
words:
type: "array"
items:
type: "string"
Sending a request like:
{"words":"foobar"}
The create-value-parser "array" will use the string value "foobar" since body is the first value in path. The subsequent map function applies the items-parser to each character of the string.
I would expect just the word "foobar" to be parsed since the default split array would be a csv split.
The text was updated successfully, but these errors were encountered:
sbgreene1307
changed the title
create-value-parser "array" needs to properly validate the valuecreate-value-parser "array" splits strings passed in body into characters
Oct 31, 2017
With schema parameters like:
Sending a request like:
The create-value-parser "array" will use the string value "foobar" since body is the first value in path. The subsequent map function applies the items-parser to each character of the string.
I would expect just the word "foobar" to be parsed since the default split array would be a csv split.
The text was updated successfully, but these errors were encountered: