fix: PSE-696 / GH Issue #38 an unknown value was passed #39
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What*
-Don't validate certain values on VariantPayload if null, these are expected to be null at times
Why*
forbidUnknownValues is true by default after the last upgrade of 'class-validator'
https://bigcommercecloud.atlassian.net/browse/PSE-696
#38
Testing/Proof*
![Screenshot 2023-06-22 at 9 00 06 PM](https://private-user-images.githubusercontent.com/5630999/248135523-28c54323-29af-4299-b80b-fd9ba9b5f256.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxMjA4NDMsIm5iZiI6MTczOTEyMDU0MywicGF0aCI6Ii81NjMwOTk5LzI0ODEzNTUyMy0yOGM1NDMyMy0yOWFmLTQyOTktYjgwYi1mZDliYTliNWYyNTYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDlUMTcwMjIzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZDM0Y2U3OThkM2ZhODg4YmIzZTk5ZDAxZmQyM2NjZGM2ZDVmNjcwOGU0MmY3M2IwNWZiNDdlZDhjYjE2MDQzOCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.17DRyXA-D418Ev_EthHejQQenyU3mdkwcGUMK5OOk0M)