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
Allow using superForms without a schema #367
Comments
You can use an empty object schema, or check this example: https://stackblitz.com/edit/sveltekit-superforms-list-actions |
Thanks for your answer. This is an interesting example. It has similar requirements to my use-case. An observation: The "delete" buttons carry the value of the
This would render the schema itself not required. Could you give an example on how to create an empty superValidate/superForm? I found that a |
Doesn't |
Creating an empty zod object via |
The adapter is quite central to superValidate, so it'll take a bit of work, also to figure out defaults, so it'll have to be a future feature. |
Running on the latest superForms
v2.6.1
i want to make a POST request to delete an item. Therefore i only want to send the item id to delete. My thinking is to use superforms, along with its useful callbacks to perform that task. I do not need an extra schema but would be happy to use theform.id
from superforms to transfer the id.However, creating a superValidated/superForm without schema does not seem to be supported. How would i approach such a scenario?
The text was updated successfully, but these errors were encountered: