Skip to content

Conversation

@daniel-shuy
Copy link
Contributor

@daniel-shuy daniel-shuy commented Jan 21, 2026

When translating oneOf, pass the subschema to the Translator to be consistent with other Translator calls so that the Translator can access the subschema

@netlify
Copy link

netlify bot commented Jan 21, 2026

Deploy Preview for jsonforms-examples ready!

Name Link
🔨 Latest commit 682664b
🔍 Latest deploy log https://app.netlify.com/projects/jsonforms-examples/deploys/6970ad7e1a383900088d6ea1
😎 Deploy Preview https://deploy-preview-2536--jsonforms-examples.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@CLAassistant
Copy link

CLAassistant commented Jan 21, 2026

CLA assistant check
All committers have signed the CLA.

@lucas-koehler lucas-koehler self-requested a review January 30, 2026 14:58
Copy link
Contributor

@lucas-koehler lucas-koehler left a comment

Choose a reason for hiding this comment

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

Hi @daniel-shuy, thanks for the contribution ❤️ This definitely makes sense to me. I have one comment inline regarding consistency with existing passing of schemas to the translator. Please have a look :)

// prefer schema keys as they can be more specialized
if (e.i18n) {
label = t(e.i18n, label);
label = t(e.i18n, label, e);
Copy link
Contributor

Choose a reason for hiding this comment

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

Looking at the control mapper, the schema is passed in an object. I think this would be preferable for consistency reasons. I.e. { schema: e }. What do you think?

@lucas-koehler lucas-koehler added this to the 3.x milestone Jan 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants