Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(standard-schema): Propertly handle object path segments #746

Merged
merged 2 commits into from
Feb 22, 2025

Conversation

EskiMojo14
Copy link
Contributor

In StandardSchema issues, path segments can either be keys or an object with a .key value.
Current handling just calls path.join('.'), which would result in "object Object" if any path segments are objects.

The Standard Schema team have @standard-schema/utils which includes a getDotPath that handles segments correctly, so I've used that.

jorisre
jorisre previously approved these changes Feb 22, 2025
@jorisre jorisre changed the base branch from dev to master February 22, 2025 08:56
@jorisre jorisre dismissed their stale review February 22, 2025 08:56

The base branch was changed.

@jorisre jorisre merged commit 8ffada0 into react-hook-form:master Feb 22, 2025
3 of 4 checks passed
Copy link
Contributor

🎉 This PR is included in version 4.1.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants