Integer parameters like the one listed below will never match. It seems express passes all query parameters as strings. We could try ParseInt and isNaN on integers fields to convert them to a valid type.
parameters:
- in: query
name: offset
schema:
type: integer
minimum: 0
default: 0
example: 0
description: Offset your search results. Used for pagination.
On a side note default doesn't seem to work.
Thanks again, hopefully I haven't missed anything this time. :P
Integer parameters like the one listed below will never match. It seems express passes all query parameters as strings. We could try
ParseInt
andisNaN
on integers fields to convert them to a valid type.On a side note
default
doesn't seem to work.Thanks again, hopefully I haven't missed anything this time. :P