Skip to content

feat: improve external helpers#2931

Merged
Marsup merged 1 commit intov17from
feat/external-helpers
Mar 20, 2023
Merged

feat: improve external helpers#2931
Marsup merged 1 commit intov17from
feat/external-helpers

Conversation

@Marsup
Copy link
Collaborator

@Marsup Marsup commented Mar 18, 2023

Supersedes #2773.

This feature aligns external helpers API with custom's.

@Marsup Marsup added the feature New functionality or improvement label Mar 18, 2023
@Marsup Marsup added this to the 17.9.0 milestone Mar 18, 2023
@Marsup Marsup self-assigned this Mar 18, 2023
Copy link
Contributor

@cjihrig cjihrig left a comment

Choose a reason for hiding this comment

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

LGTM - just had a question on one thing.

@Marsup Marsup merged commit 7b24729 into v17 Mar 20, 2023
@Marsup Marsup deleted the feat/external-helpers branch March 20, 2023 08:01

const ext = (value, { message }) => {

return message('{{#label}} has an invalid value {{#value}} ({{#custom}})', { custom: 'denied' });
Copy link

Choose a reason for hiding this comment

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

Hey, I was wondering why my custom external validation doesn't work with the error messages. I was trying everything and came up here. I see you put string in message fn of helpers BUT in reality the signature of that function is different:

Снимок экрана 2024-02-09 в 01 20 22

I'm sorry don't have time for better issue report but to understand this problem on my end it took good couple hours

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New functionality or improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants