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

docs(services): fix numericality validation example #8892

Merged
merged 2 commits into from
Jul 13, 2023
Merged

docs(services): fix numericality validation example #8892

merged 2 commits into from
Jul 13, 2023

Conversation

roeeyn
Copy link
Contributor

@roeeyn roeeyn commented Jul 13, 2023

In the numericality validation example, the object { otherThan: 13, 'You cannot go to floor ${otherThan}' } seems to be incorrect, and according to the context I believe the best fix would be adding the message key to it.

I added the Floor label to maintain consistency with other examples, but I'm aware it may not be needed.

Copy link
Contributor

@jtoar jtoar left a comment

Choose a reason for hiding this comment

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

Thanks @roeeyn!

@jtoar jtoar added the release:docs This PR only updates docs label Jul 13, 2023
@jtoar jtoar added this to the next-release milestone Jul 13, 2023
@jtoar jtoar merged commit e486cf7 into redwoodjs:main Jul 13, 2023
10 of 14 checks passed
@roeeyn roeeyn deleted the docs/fix-service-validation-numericality-example branch July 13, 2023 20:32
@jtoar jtoar modified the milestones: next-release, v6.0.0 Jul 17, 2023
jtoar pushed a commit that referenced this pull request Jul 17, 2023
In the `numericality` validation example, the object `{ otherThan: 13,
'You cannot go to floor ${otherThan}' }` seems to be incorrect, and
according to the context I believe the best fix would be adding the
`message` key to it.

I added the `Floor` label to maintain consistency with other examples,
but I'm aware it may not be needed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:docs This PR only updates docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants