-
Notifications
You must be signed in to change notification settings - Fork 44
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
widget instead of format #11
Comments
Yes, this should be fixed. There are widgets like "textarea" that are only UI hints, but the case of email the rule should be stronger, not only a UI hint. |
I faced the very same issue and I've already applied a patch in my local branch. Before opening a PR I want to share a couple of points:
Are these 2 point ok for you ? |
@hpatoio there will always be information related with the UI that has nothing to do with the data model here. Otherwise we cannot build a form generator based on json-schema, because we will need more information apart from what is needed to simply describe the data. |
@nacmartin ok. What about the point 2 ? |
Anyone knows how to change the key widget to format ? Or how to solve this issue ? I am using angular-schema-form to handle forms. |
The bundle is working properly, but it returns widget instead of format.
"address": {
"type": "string",
"title": "Email address",
"widget": "email",
"propertyOrder": 2
},
The text was updated successfully, but these errors were encountered: