Skip to content

Conversation

@jonnerd154
Copy link
Owner

Some odata services expose Entity properties which are sometimes read-only, and passing the default (None) value causes the service to return an error. This patch implements an additional keyword argument (omit_null_props) passed to save() to provide a list of attributes to be explicitly omitted from the request payload if they are null. Optionally, omit_null_props may be set to True, and all properties with value None will be omitted from the request. Applies to POST and PATCH requests.

@jonnerd154 jonnerd154 merged commit 67e4fb1 into master Oct 9, 2024
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