-
Notifications
You must be signed in to change notification settings - Fork 735
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
Support multiple types on a field descriptor and assert that actual type matches one of them #352
Comments
That sounds like a nice improvement. A PR would be welcome. Looks like the assertion could be performed whenever a collection or array of JsonFieldType is passed in. |
OK, I will do a pull request these week. is there any reason to use an object instead of JsonFiledType? |
Thanks
Overloading with
Yes, the payload may not be JSON. For example, REST Docs also supports XML payloads. |
@victorherraiz @wilkinsona |
I have this already implemented in my local repo, but I have not had time to updated and push it, I have to help other projects in my company and I abandoned the POC I was doing. I will do it this week. Sorry for the late reply. |
@victorherraiz |
The following code produce a nice output in the type column, but It does not perform the assertion:
Is there a better way to do it?
Would you accept a pull request about this?
The text was updated successfully, but these errors were encountered: