Skip to content

Fix profile endpoint crashing randomly#3

Merged
ItsLimeNade merged 3 commits intomainfrom
fix-profile-endpoint-crashing
Jan 16, 2026
Merged

Fix profile endpoint crashing randomly#3
ItsLimeNade merged 3 commits intomainfrom
fix-profile-endpoint-crashing

Conversation

@yorunoken
Copy link
Copy Markdown
Collaborator

This fixes an issue ProfileSet and ProfileConfig where some values weren't set as Option<T>. This caused crashes because those values can be null.

Copy link
Copy Markdown
Owner

@ItsLimeNade ItsLimeNade left a comment

Choose a reason for hiding this comment

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

You should add #[serde(skip_serializing_if = "Option::is_none")]to the optional values

@ItsLimeNade ItsLimeNade added the bug Something isn't working label Jan 16, 2026
@yorunoken
Copy link
Copy Markdown
Collaborator Author

yorunoken commented Jan 16, 2026

is there a reason for skipping serialization instead of just setting to to null? I see you did it with all the other endpoints

@ItsLimeNade ItsLimeNade merged commit bb3e985 into main Jan 16, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants