Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude default, none, and unset in REST API #126

Merged
merged 1 commit into from
Jan 21, 2023
Merged

Conversation

criccomini
Copy link
Contributor

The REST API was, somewhat annoyingly, returning default, null, and unset fields for Pydantic models. I've updated it to exclude such fields; to leave the client to their own devices when handling unset variables. I suppose some clients may care about the difference between null and unset, but I'm going to leave that for another day.

Closes #120

The REST API was, somewhat annoyingly, returning default, null, and unset fields
for Pydantic models. I've updated it to exclude such fields; to leave the client
to their own devices when handling unset variables. I suppose some clients may
care about the difference between null and unset, but I'm going to leave that
for another day.

Closes #120
@criccomini criccomini merged commit 5919af4 into main Jan 21, 2023
@criccomini criccomini deleted the exclude-nulls-in-api branch January 21, 2023 01:13
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.

REST API should exclude defaults, nones, and unset
1 participant