client-php icon indicating copy to clipboard operation
client-php copied to clipboard

Lead Label Color Enum doesn't contain all possible values

Open JaredPage opened this issue 4 months ago • 0 comments

I can create a Lead Label with the following colors using a current Developer Sandbox account.

  • green
  • blue
  • red
  • yellow
  • purple
  • gray
  • brown
  • dark-gray
  • orange
  • pink

However LeadLabelColor.php doesn't contain the colors I bolded/italicised above. This results in the error from the ObjectSerializer.php:

Invalid value for enum '\Pipedrive\Model\LeadLabelColor', must be one of: 'green', 'blue', 'red', 'yellow', 'purple', 'gray'

The solution here would be to properly document and implement the full range of colors available on the platform.

Version 7.1 of the library - latest version available through composer.

JaredPage avatar Oct 16 '24 05:10 JaredPage