1.0.2 • Published 4 years ago

paramsbuilder v1.0.2

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

Getting Started

This package contains a function called buildParams.

You need to pass the req.swagger.params to it , in response, it will provide the entire object which can contain header, body and query paramters.

If a specific parameter is not provided or is empty , is undefined , or empty space is provided, the function will provide 0 or null as its value.

The optional paramters will also be assigned zero or null as per the above condition.

NOTE: The function buildParams is only applicable for swagger project attributes. Also each parameter is tested for either string or number types on version 1.0.2 . The support for other types will be added in future versions.