Skip to content
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

"an unknown value was passed to the validate function" when creating #38

Closed
huntario opened this issue Jun 21, 2023 · 1 comment
Closed

Comments

@huntario
Copy link
Collaborator

Steps to reproduce
Products > click a product > add at least 1 rule > click save

Expected result
Rules saved on the product, product can now be used as a subscription

Actual result
"an unknown value was passed to the validate function" 400 is returned

Workaround
Downgrade with npm install [email protected] --save

Now the rules save as expected

Notes
Seems to be due to:
typestack/class-validator#1873

We may want to consider using version 0.13.2 until resolved

@huntario
Copy link
Collaborator Author

There are some properties on VariantPayload that are expected to be null at times

forbidUnknownValues is true by default after the last upgrade of the 'class-validator' library

huntario added a commit that referenced this issue Jul 6, 2023
fix: PSE-696 / GH Issue #38 an unknown value was passed
@huntario huntario closed this as completed Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant