Skip to content

feat(links): add expire_fallback_url field (v1.1.0)#4

Merged
pbertsch merged 1 commit into
mainfrom
feat/expiry-fallback-url
Jun 2, 2026
Merged

feat(links): add expire_fallback_url field (v1.1.0)#4
pbertsch merged 1 commit into
mainfrom
feat/expiry-fallback-url

Conversation

@pbertsch
Copy link
Copy Markdown
Contributor

@pbertsch pbertsch commented Jun 2, 2026

Summary

  • Adds expire_fallback_url: Optional[str] = None to the Link model in awsysco/models.py
  • When a link expires (by date or click cap), the API will redirect to this URL instead of showing an error page
  • Uses existing alias_generator=to_camel pattern — serializes as expireFallbackUrl in JSON automatically
  • Bumps version from 1.0.01.1.0 (minor bump, additive feature)

Test plan

  • python3 -m pytest — 149 passed, 9 skipped (no regressions)
  • Confirmed to_camel alias generator is already in place on _CamelModel base class

🤖 Generated with Claude Code

…odels

New optional field that redirects to a custom URL when a link expires (by
date or click cap) instead of showing an error page. Serializes as
expireFallbackUrl via alias_generator=to_camel. Also bumps version to
1.1.0.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@pbertsch pbertsch merged commit e185cfb into main Jun 2, 2026
1 of 3 checks passed
@pbertsch pbertsch deleted the feat/expiry-fallback-url branch June 2, 2026 16: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.

1 participant