Skip to content

fix(sdk): reject coercible company logo values - #2040

Merged
Sau1707 merged 1 commit into
mainfrom
fix/sdk-company-logo-validation
Dec 3, 2026
Merged

Sau1707 merged 1 commit into
mainfrom
fix/sdk-company-logo-validation

Conversation

@Sau1707

@Sau1707 Sau1707 commented Dec 3, 2026

Copy link
Copy Markdown
Member

Summary

  • Validate Company logo values before coercion, accepting only bytes or None.
  • Keep byte limits, RIFF/WEBP signatures, exact container lengths, and byte preservation without adding Pillow. Add regression coverage.
  • Container checks do not decode pixels or reject animations. SQLModel construction and assignment behavior remains unchanged; use Company.model_validate or Company.validate_logo.
  • Migration: pass bytes instead of strings or bytearrays.

Validation

  • Isolated worktree: 83 database tests passed; Ruff lint, format check, ty check, and git diff --check passed.
  • Build passed during implementation; not repeated in the isolated worktree because its reused environment lacks build dependencies.
  • Full SDK suite not repeated after earlier disk-quota failures.

@Sau1707 Sau1707 added sdk Related to the applications SDK fix Bug fixes labels Dec 3, 2026
@Sau1707
Sau1707 merged commit 072740e into main Dec 3, 2026
16 checks passed
@Sau1707
Sau1707 deleted the fix/sdk-company-logo-validation branch December 3, 2026 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Bug fixes sdk Related to the applications SDK

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant