DocuSign.ModelCleaner (DocuSign v2.0.0)

View Source

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