reitit

adham 2024-06-11T07:21:55.841549Z

Hey all, I have a question about Malli coercion I have the following schema

{:query
 [:map
  [:date-from :string]
  [:date-to :string]
  [:source {:optional true} [:sequential :string]]
  [:gov {:optional true} [:sequential :string]]
  [:theme {:optional true} [:sequential :string]]
  [:topic {:optional true} [:sequential :string]]]}
In Swagger this appears normally as having the option to add multiple inputs for the :sequential keys but, using only one value breaks the schema, as in if I want a list of one item, it is not possible. I'll include a screenshot to demonstrate. Using [:or :string [:sequential :string]] disables the ability to add multiple items in Swagger, what would be the solution here?

adham 2024-06-11T07:22:11.582699Z