Skip to content

feat(shared): Add a new Zod validation schema for Location creation payload - #216

Open
Daksh7785 wants to merge 1 commit into
Dharm3112:mainfrom
Daksh7785:feat/add-a-new-zod-validation-schema-for-loca
Open

feat(shared): Add a new Zod validation schema for Location creation payload#216
Daksh7785 wants to merge 1 commit into
Dharm3112:mainfrom
Daksh7785:feat/add-a-new-zod-validation-schema-for-loca

Conversation

@Daksh7785

Copy link
Copy Markdown

What does this PR do?

This PR creates a new Zod validation schema locationCreationPayloadSchema in packages/shared/src/schema.ts.

Why is this necessary?

As per Issue #45, the app needs a reliable way to validate location data before it hits the backend or when it is generated on the frontend. The schema correctly defines and bounds lat (Latitude: -90 to 90) and lng (Longitude: -180 to 180), and includes a label property for string descriptors.

How was this verified?

  • Verified schema in shared package.
  • Tested Zod boundary validations (min, max).

Thank you for reviewing!

@vercel

vercel Bot commented Jul 19, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the Dharm3112's projects Team on Vercel.

A member of the Team first needs to authorize it.

@netlify

netlify Bot commented Jul 19, 2026

Copy link
Copy Markdown

👷 Deploy request for intellicircle pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 98b7ae2

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