-
-
Notifications
You must be signed in to change notification settings - Fork 586
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
Specify Type as nullable? #1191
Comments
I have already examined this feature and currently there is no use case for such feature in the serializer context. When serializing, the object is already instantiated by other software(and hopefully valid), when de-serializing, it is not serializer responsibility to perform validation. I'm closing this ticket. If you have a specific use case, I can re-open this. |
Hello @goetas, It would be really useful to add a support for Thanks. |
I understand the situation and I had similar issues but this behavior is just about documentation, I guess that there is no chage in behavior needed for that case for the serializer library. Maybe this issue should be raised in the tool you use to generate the API documentation? |
I am using NelmioApiDocBundle which reads the deserialization information from JMS (since I am using it in my project). Thanks anyway! |
Hello, how can i specify that a type (DateTime, in this case) is nullable?
Not working:
Not working:
Not working:
Thanks.
The text was updated successfully, but these errors were encountered: