Skip to content

Trouble when coercing query parameters with reitit and malli #753

@DaviNAzevedo

Description

@DaviNAzevedo

Hello! When trying to coerce query parameters using malli, i'm receiving the following error:

{
  "value": {
    "name": "aaaa",
    "lastname": "bbbb",
    "age": "123"
  },
  "type": "reitit.coercion/request-coercion",
  "coercion": "malli",
  "in": [
    "request",
    "query-params"
  ],
  "humanized": {
    "name": [
      "missing required key"
    ],
    "lastname": [
      "missing required key"
    ],
    "age": [
      "missing required key"
    ]
  }
}

my malli schema:

(def query [:map
            ["name" :string]
            ["lastname" :string]
            ["age" :int]])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions