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

feat: support passing schema via async function #154

Merged
merged 3 commits into from
Jun 5, 2024
Merged

Conversation

TheEdoRan
Copy link
Owner

The code in this PR adds the support for passing a schema to the action via an async function inside the schema method. This is necessary, for instance, when you're using a i18n solution that requires to await the translations and pass them to schemas, as discussed in #111.

TheEdoRan added 2 commits June 5, 2024 19:27

Verified

This commit was signed with the committer’s verified signature.
TheEdoRan Edoardo Ranghieri

Verified

This commit was signed with the committer’s verified signature.
TheEdoRan Edoardo Ranghieri
Copy link

vercel bot commented Jun 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
next-safe-action-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 5, 2024 5:51pm
next-safe-action-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 5, 2024 5:51pm

Verified

This commit was signed with the committer’s verified signature.
TheEdoRan Edoardo Ranghieri
Copy link

github-actions bot commented Jun 5, 2024

🎉 This PR is included in version 7.0.0-next.51 🎉

The release is available on:

Your semantic-release bot 📦🚀

Copy link

🎉 This PR is included in version 7.0.0 🎉

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] [v7] Support passing schema via async function
1 participant