-
Couldn't load subscription status.
- Fork 494
refactor(sanity): validate that there is no callbacks in aspects #10905
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
refactor(sanity): validate that there is no callbacks in aspects #10905
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
2 Skipped Deployments
|
🧪 E2E Preview environment🔑 Environment Variables for Local TestingThis is the preview URL for the E2E tests: https://e2e-studio-joz6dp2pg.sanity.dev To run the E2E tests locally, you can use the following environment variables, then run 💬 Remember to build the project first with |
📊 Playwright Test ReportThis report contains test results, including videos of failing tests. |
|
No changes to documentation |
2a495f2 to
35fc351
Compare
⚡️ Editor Performance ReportUpdated Thu, 23 Oct 2025 10:16:19 GMT
Detailed information🏠 Reference resultThe performance result of
🧪 Experiment resultThe performance result of this branch
📚 Glossary
|
Coverage Report
File Coverage
|
||||||||||||||||||||||||||||||||||||||||||||||||||
35fc351 to
63f2741
Compare
63f2741 to
da72a2e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, lgtm!

Description
Added validation to prevent callback functions in Media Library asset aspects. This ensures that asset aspects are serializable and can be safely deployed without relying on runtime code execution.
Part of DAM-766
What to review
validateNoCallbacksutility that checks for functions in schema definitionsvalidateMediaLibraryAssetAspectfunctionTesting
Added extensive test coverage in
validateMediaLibraryAssetAspect.test.tsthat verifies:Notes for release
Added validation to prevent callback functions in Media Library asset aspects. Asset aspects must now use static values instead of functions for properties like
hidden,readOnly,initialValue,validation, and component definitions. This ensures that asset aspects are fully serializable and can be safely deployed.