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

Getting 'property attribute_values should not exist, property int_attribute_values should not exist' after adding custom attributing and trying to use it inside product #28

Open
moheldesoqy opened this issue Apr 23, 2024 · 1 comment

Comments

@moheldesoqy
Copy link

moheldesoqy commented Apr 23, 2024

Hello!

this plugin was working just fine for me the other day, and today when i tried to check a new boolean attribute i added to my product, the console logs print:

error:   property attribute_values should not exist, property int_attribute_values should not exist
Error: property attribute_values should not exist, property int_attribute_values should not exist
    at /Users/moh/Projects/project/node_modules/@medusajs/medusa/dist/utils/validator.js:153:31
    at step (/Users/moh/Projects/project/node_modules/@medusajs/medusa/dist/utils/validator.js:44:23)
    at Object.next (/Users/moh/Projects/project/node_modules/@medusajs/medusa/dist/utils/validator.js:25:53)
    at fulfilled (/Users/moh/Projects/project/node_modules/@medusajs/medusa/dist/utils/validator.js:16:58) {
  type: 'invalid_data',
  code: undefined,
  date: 2024-04-23T11:31:04.208Z
}

any ideas?

@vholik
Copy link
Owner

vholik commented Apr 30, 2024

Did you extend product validators? If so import you validator class from medusa-custom-attributes/dist/src/api/routes...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants