Skip to content

AAI-236 Exclude empty fields when posting registration data to Auth0 API#25

Merged
marius-mather merged 2 commits into
mainfrom
bugfix-null-data
Jun 6, 2025
Merged

AAI-236 Exclude empty fields when posting registration data to Auth0 API#25
marius-mather merged 2 commits into
mainfrom
bugfix-null-data

Conversation

@marius-mather

@marius-mather marius-mather commented Jun 5, 2025

Copy link
Copy Markdown
Collaborator

Description

AAI-236: another small fix encountered when running against the actual Auth0 API: the API doesn't like empty fields being sent as null/None, even if the fields are optional - exclude these fields when posting data

Changes

  • Use exclude_none=True so None fields are not included in posted data

Checklist

  • I have commented my code, particularly in hard-to-understand areas
  • I have added unit / integration tests that prove my fix is effective or that my feature works
  • I have run all tests locally and they pass
  • I have updated the documentation (if applicable)

How to Test Manually (if necessary)

Run uv run pytest

@amandazhuyilan amandazhuyilan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one!

@marius-mather marius-mather merged commit 82d288d into main Jun 6, 2025
1 check passed
@amandazhuyilan amandazhuyilan deleted the bugfix-null-data branch June 19, 2026 03:21
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.

2 participants