Extended API Route Validator But still getting { type: invalid_data} #8352
Unanswered
nathgoutam93
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have extended the
product_collections
Entity to have some custom fields for visual configuration. migrations are done correctly and custom fields can be seen on raw data.Even though i have extended the API route validator for Admin
AdminPostCollectionsCollectionReq
.But When I try to update a collection with those custom fields from a custom admin widget i'm getting { type: invalid_data } for all the custom fields.
Below i have attached the code snippets for the extedned validator and custom widget. please help
// src/api/routes/admin/collections/update-collection.ts
// src/api/index.ts
// src/admin/widgets/collections/edit-collection.tsx
Beta Was this translation helpful? Give feedback.
All reactions