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: add support for label method #77

Merged
merged 2 commits into from
Apr 9, 2024
Merged

feat: add support for label method #77

merged 2 commits into from
Apr 9, 2024

Conversation

simonguo
Copy link
Member

@simonguo simonguo commented Apr 9, 2024

label(label: string)

Overrides the key name in error messages.

MixedType().label('Username');

Eg:

SchemaModel({
  first_name: StringType().label('First name'),
  age: NumberType().label('Age')
});

@simonguo simonguo merged commit 9ff16c3 into master Apr 9, 2024
4 checks passed
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.

1 participant