Comments (5)
@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.
from liformbundle.
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.
from liformbundle.
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:
-
I think that
widget
should be completely removed from the response. It's an information related to the UI and thus it has nothing to do with the data model -
At the moment I only support
email
format. I will also add support for date related form but this open a space to discussion. According to this document http://json-schema.org/latest/json-schema-validation.html#rfc.section.7.3datetime
should be sent using the formatYYYY-MM-DDTHH:MM:SS.FFFZ
whiledate
must have the formatYYYY-MM-DD
. This means that we should not consider the parameterformat
for theDateType
andDateTimeType
. See https://symfony.com/doc/current/reference/forms/types/datetime.html#format and https://symfony.com/doc/current/reference/forms/types/date.html#format
Are these 2 point ok for you ?
from liformbundle.
@nacmartin ok. What about the point 2 ?
from liformbundle.
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.
@hpatoio do you know how to sold this issue ?
Thanks in advance.
from liformbundle.
Related Issues (19)
- "enum_titles" should be in an "options" array HOT 1
- ServiceNotFoundException The service "liform.resolver" has a dependency on a non-existent service "validator.mapping.class_metadata_factory" HOT 1
- There is no "serializer" service HOT 1
- Adapt it to Symfony Flex HOT 1
- DateType json response widget date
- New release please HOT 3
- Release please HOT 1
- Does not support full range of native FormTypes - Symfony 4.3.4 HOT 1
- Unable to install via composer due to conflicting dependencies
- React Status Code ? HOT 1
- DateTimeType widget single_text
- FormType time should not use StringTransformer by default HOT 5
- Impossible to not have a title
- undefined method named "getBlockPrefix" HOT 3
- Allow injection via LiformInterface
- move to answear HOT 3
- Abstract transformer need to use translation domain for correct label translation and should be used for placeholder too HOT 1
- UndefinedMethodException $resolver->setDefaultTransformers(); HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from liformbundle.