Skip to content

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
@github-actions
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