Skip to content

✨ feature: ApiPersonGet nullable columns, clearable address street/city on person PATCH (be#1418, be#1419) - #376

Merged
arturasmckwcz merged 2 commits into
mainfrom
1418-person-get-nullable
Nov 22, 2026
Merged

arturasmckwcz merged 2 commits into
mainfrom
1418-person-get-nullable

Conversation

@arturasmckwcz

Copy link
Copy Markdown
Collaborator

Contract for need4deed-org/be#1418 and need4deed-org/be#1419.

  • ApiPersonGet: avatarUrl, lastName, middleName, phone, landline, email → string | null. These columns are nullable and be returns NULL (be#1418 makes the response schema stop turning it into "").
  • ApiPersonPatch.address → Partial<VoidableProps<Address, "street" | "city">>, so /person/:id can clear street and city (be#1419).
  • ApiPersonPatch is now built from a shared PersonFields instead of ApiPersonGet, so lastName stays non-null on PATCH.

Consumers: fe code that treats these GET fields as string may need ?? "". I'll check once this is published.

🤖 Generated with Claude Code

…ty on person PATCH (be#1418, be#1419)

- ApiPersonGet: avatarUrl, lastName, middleName, phone, landline, email are
  string | null, as be returns NULL columns.
- ApiPersonPatch.address: partial, street and city accept null.
- ApiPersonPatch no longer derives from ApiPersonGet (lastName stays
  non-null on PATCH).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@arturasmckwcz arturasmckwcz self-assigned this Nov 22, 2026
…umns (be#1418)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

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

LGTM

@arturasmckwcz
arturasmckwcz merged commit 4d8f651 into main Nov 22, 2026
1 check passed
@arturasmckwcz
arturasmckwcz deleted the 1418-person-get-nullable branch November 22, 2026 01:04
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