nomasystems / erf

:pencil: A design-first Erlang REST Framework.
https://nomasystems.github.io/erf/
Apache License 2.0
29 stars 2 forks source link

Query string parameters only accept string type declaration #64

Open albertocsouto opened 4 months ago

albertocsouto commented 4 months ago

Query string parameters not declared as string always fail, producing a 400 error. This is a sample:

{
  "name": "page",
  "in": "query",
  "description": "The page to retrieve. A fixed maximum number of elements N is returned on each call. A value of P on the `page` parameter will skip (P - 1) * N elements on the retrieval process and return the following elements.",
  "required": false,
  "schema": {
    "type": "integer"
  }
}

Currently the only workaround possible is to declare as string all the parameters and converting them in the callback module.