▪️ coerceTypes (deprecated)
Warning
coerceTypes
is deprecated in favor of validateRequests.coerceTypes and validateResponses.coerceTypes
Determines whether the validator should coerce value types to match the those defined in the OpenAPI spec. This option applies only to path params, query strings, headers, and cookies. It is highly unlikely that you will want to disable this. As such this option is deprecated and will be removed in the next major version
Option-schema
coerceTypes (optional) - deprecated
true
(default) - coerce scalar data types."array"
- in addition to coercions between scalar types, coerce scalar data to an array with one element and vice versa (as required by the schema).