View Source DocuSign.ModelCleaner (DocuSign v1.3.1)

Provides functions to clean DocuSign models before sending to the API.

This module helps remove nil values from model structs to improve API compatibility.

Summary

Functions

Clean a DocuSign API request body to remove nil values from structs. This function gets applied by the RequestBuilder automatically.

Functions

clean(struct)

Clean a DocuSign API request body to remove nil values from structs. This function gets applied by the RequestBuilder automatically.

The function handles the following cases:

  • Structs are converted to maps and nil values are removed
  • Maps have their nil values removed
  • Lists are processed recursively
  • Other values are passed through unchanged