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

fix(lib): make the translatable property optional #375

Conversation

demetriusfeijoo
Copy link
Contributor

What?

It makes the translatable property optional in the plugin's schema.

Why?

JIRA: EXT-2267

The translatable property is not always present and we were expecting it to be.
So, for example, in the Field Plugin Editor (where this property doesn't exist in the schema), the field plugin was breaking because the schema validation just failed due to the lack of this property.

Copy link

vercel bot commented Mar 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
plugin-sandbox ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 8, 2024 0:03am

Copy link
Contributor

@eunjae-lee eunjae-lee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! In the future (as you mentioned on Slack) we could consider using a lightweight validation library like valibot, but for now this seems good to me. Thank you for the investigation and the work!

@eunjae-lee eunjae-lee merged commit e70229e into main Mar 8, 2024
4 checks passed
@eunjae-lee eunjae-lee deleted the EXT-2267-fix-field-plugin-not-being-loaded-in-the-field-plugin-editor branch March 8, 2024 09:41
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

Successfully merging this pull request may close these issues.

2 participants