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
Form fields to JSON #1866
Comments
I've created a json schema handler that use this bundle: https://github.com/Limenius/LiformBundle
These are json schema, so you can also use it to validate data client side before send them. See this post for details https://blog.apisyouwonthate.com/the-many-amazing-uses-of-json-schema-client-side-validation-c78a11fbde45 |
Thank you, I installed this bundle but what is the best pratice to use this automaticaly with FOSRest ? I need to override JsonViewHandler ? |
That's an option. Otherwise you can register a ViewResponseListener and handle it there |
Hi, I want to send form fields informations (attributes etc.) allow to generate this form with vue.js
When I send form to the view I have only the fields names:
{"username":[],"email":[],"actions":{"save":[],"cancel":[]}}
I would like:
{"username":{"type":"text", "label": "Username", "attr" : {"maxlength": 100}},...
Can you tell me how ?
Thanks
The text was updated successfully, but these errors were encountered: