Skip to content

Conversation

@achugh-sumo
Copy link
Collaborator

@achugh-sumo achugh-sumo commented Nov 6, 2025

Description

Fix: Add omitempty tag to ViewFilter
Problem: Creating Sumo Logic roles with selection_type = "Deny" fails
with "view_filter_should_be_null" error when view_filter is not specified.

Cause: Unset view_filter fields were serialized as empty strings ("")
instead of being omitted from JSON, causing backend validation to fail.

Fix: Added omitempty JSON tag to ViewFilterDefinition.ViewFilter
field. Empty values are now omitted from the JSON payload.

Result: Users can now create and update Deny roles without validation errors.

Check list

@achugh-sumo achugh-sumo requested a review from a team as a code owner November 6, 2025 05:12
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