Skip to content

feat(service): add semver and e164 phone_number validators - #29

Merged
ATLURI0001 merged 1 commit into
mainfrom
feat/service-semver-and-phone-number-validators
Nov 17, 2026
Merged

ATLURI0001 merged 1 commit into
mainfrom
feat/service-semver-and-phone-number-validators

Conversation

@ATLURI0001

Copy link
Copy Markdown
Owner

Core Objective

  • Add schema validation rules for Semantic Versioning strings (semver) and E.164 international phone numbers (phone_number) in service.py.

Key Changes

  • Semantic Versioning (semver):
    • Validates SemVer 2.0 specifications (MAJOR.MINOR.PATCH[-PRERELEASE][+BUILD]).
    • Disallows leading zeroes in numeric identifiers (01.0.0 rejected).
    • Handles optional vs. required flags and bounded string lengths ($[1, 60]$ chars).
  • E.164 Phone Number (phone_number):
    • Enforces standard international format +<country_code><number> matching ^\+[1-9]\d{1,14}$.
    • Rejects punctuation, spaces, dashes, country codes starting with 0, and lengths over 15 digits.
  • Error Handling: Raises consistent ApiError(422, ...) with detailed field error descriptions.

Verification & Testing

  • Test Suite: python-fullstack/backend/tests/test_service_validation.py
  • Results: 15/15 tests passed in 0.09s.
  • Coverage: Verified valid/invalid semver patterns, E.164 formats, optional/required states, and error responses.

@vercel

vercel Bot commented Nov 17, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
lmskl Error Error Nov 17, 2026 4:34am UTC

@ATLURI0001
ATLURI0001 merged commit 6ae7d38 into main Nov 17, 2026
6 of 8 checks passed
@ATLURI0001
ATLURI0001 deleted the feat/service-semver-and-phone-number-validators branch November 17, 2026 04:34

This branch had an error being deployed

1 failed deployment
Preview — 859134a5 Deployed Nov 17, 2026 by vercel[bot]
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