Skip to content

Conversation

@miello
Copy link
Contributor

@miello miello commented May 30, 2025

Why I did

  • withValidator return error-like response which includes stack trace that considers as crucial information for attacker
  • We need __pk field for connect case

What I did

  • Change error response from withValidator to use ZodIssue[] instead
  • Add __pk to relation when query findOne or findMany

@changeset-bot
Copy link

changeset-bot bot commented May 30, 2025

🦋 Changeset detected

Latest commit: f949ca3

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@miello miello requested a review from saenyakorn May 30, 2025 03:47
@miello miello merged commit df75192 into main May 30, 2025
1 check failed
@miello miello deleted the earth/fix/extras-and-validator-problem branch May 30, 2025 06:21
This was referenced Jun 10, 2025
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