Methods
-
generateRegistrationOptions(api)
-
Takes API level properties and generates JSON configurations to use when registering the API with fastify.
Parameters:
Name Type Description api
API API to generate configurations for. -
pruneUndefined(obj)
-
Given an object, return a new object with undefined keys removed.
Parameters:
Name Type Description obj
* Input object, with potentially undefined keys Returns:
- new obj with no undefined keys