Skip to content

Add missing legal consent model for marketing forms#439

Open
xymbol wants to merge 1 commit into
HubSpot:masterfrom
xymbol:forms-legal-consent
Open

Add missing legal consent model for marketing forms#439
xymbol wants to merge 1 commit into
HubSpot:masterfrom
xymbol:forms-legal-consent

Conversation

@xymbol

@xymbol xymbol commented Jun 12, 2026

Copy link
Copy Markdown

marketing.forms.forms_api.get_page returns nil entries for any form with legalConsentOptions. Four models type legal_consent_options as OneOfLegalConsentOptionsNone…ImplicitConsentToProcess, but no file defines that constant; the resulting NameError is rescued into nil by the oneOf matcher, so affected forms silently disappear from results.

Adds the missing oneOf model, mirroring the existing HubSpotFormDefinitionPatchRequestLegalConsentOptions union (same four variants), plus a regression spec. The file is hand-authored to match the generator's output format, so a future regeneration from a corrected spec can replace it cleanly.

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.

1 participant