-
Notifications
You must be signed in to change notification settings - Fork 131
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
Remove hard validation for additional and optional fields #1030
Conversation
src/main/java/com/adyen/model/balancecontrol/BalanceTransferRequest.java
Outdated
Show resolved
Hide resolved
I think this also warrants a unit test to verify new behavior |
Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com>
Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com>
@wboereboom we already have tests for oneOf model (de)serialization, which is the main concern for this fix. In order for them to pass I needed to leave the required parameter validation (basically this is the only requirement for the oneOf models to properly deserialize I found). Afterwards I also checked that for the oneOf model deserialization the warning is supressed. Is there any other scenarios that we need to test you think? |
Description
Remove hard validation for additional/optional fields so that added parameters will not break integrations. Also had to ignore the logger for oneOf fields (as that validation will fail always).
fixes #1024