Skip to content

Conversation

@Skullsneeze
Copy link

Fixes #294

During deserialization when a FieldGroup type is deserialized the $openAPITypes always defines fields as a type of \HubSpot\Client\Marketing\Forms\Model\DependentFieldDependentField[] (see \HubSpot\Client\Marketing\Forms\Model\FieldGroup:64)

This PR dynamically adjust the subclass for the field types so they are deserialized using their appropriate model

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Invalid value "email" for "field_type", must one of "payment_link_radio" error

1 participant