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

feat: improve external helpers #2931

Merged
merged 1 commit into from
Mar 20, 2023
Merged

feat: improve external helpers #2931

merged 1 commit into from
Mar 20, 2023

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.

test/index.ts Show resolved Hide resolved
@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.

None yet

3 participants