Skip to content

Refactors Zod schemas to use nullish decorator#545

Merged
vladjerca merged 1 commit into
masterfrom
feat/null_default
Jun 4, 2025
Merged

Refactors Zod schemas to use nullish decorator#545
vladjerca merged 1 commit into
masterfrom
feat/null_default

Conversation

@vladjerca

Copy link
Copy Markdown
Contributor

This change updates the Zod schemas to use the .nullish() decorator instead of .optional() to better handle null and undefined values.

  • Improves consistency in schema definitions.
  • Enhances type safety by explicitly allowing null values where appropriate.

@seferturan seferturan force-pushed the feat/null_default branch from 3ccbe46 to 424a529 Compare June 4, 2025 10:39

@seferturan seferturan 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.

I rebased and fixed the merge conflicts. Also added a small fixup to use the nullish decorator for some of the other properties in profileResponseSchema

@vladjerca vladjerca merged commit 7703b9e into master Jun 4, 2025
3 checks passed
@vladjerca vladjerca deleted the feat/null_default branch June 4, 2025 13: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.

2 participants