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

DEVXP-XXX: handle paths #129

Merged
merged 7 commits into from
Feb 13, 2025
Merged

Conversation

dragidavid
Copy link
Collaborator

@dragidavid dragidavid commented Feb 12, 2025

This PR applies a couple suggestions from this previous PR, thanks @thien-remote.

Changes are:

  • adds a new package validator to make the validations better in format.ts
  • uses the Format enum from the json-schema-typed package instead of our custom solution (again in `format.ts)
  • adjusts the way we handle the path key across the package - now matching the way we do it in the original package
  • some minor changes, adding comments and tests

- this change ensures that the paths are created in a way that matches how we generate the `formErrors` in the main package
@dragidavid dragidavid marked this pull request as ready for review February 13, 2025 14:01
next/src/form.ts Show resolved Hide resolved
@dragidavid dragidavid merged commit 56b0005 into main Feb 13, 2025
2 checks passed
@dragidavid dragidavid deleted the devxp-xxx-handle-path-consistently branch February 13, 2025 16:49
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