joi icon indicating copy to clipboard operation
joi copied to clipboard

multipleOf method for Number?

Open a00andos opened this issue 11 years ago • 4 comments

What do you say about creating a "multipleOf" method for Numbers in Joi? (According to its definition in JSON schema: http://json-schema.org/latest/json-schema-validation.html#anchor14).

At least it would be useful to me! =)

a00andos avatar Jan 19 '15 09:01 a00andos

I'll accept a PR with multiple.

Marsup avatar Jan 19 '15 10:01 Marsup

I'm not that into the jargong and praxis of Github, but does: "I'll accept a PR with multiple." means: If you(a00andos) want you can create a Pull Request, where you(a00andos) take it up on yourself to create the code of the request above, and if I(Marsup) like what you have done, I'll merge it into Joi?

Hope you dont mind the newbie clarification =)

a00andos avatar Jan 19 '15 23:01 a00andos

That's exactly what I'm saying :) This should be an easy task, you can inspire from other lookalike rules, tests should be pretty similar as well. Happy to help if you're lost.

Marsup avatar Jan 20 '15 07:01 Marsup

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

lock[bot] avatar Jan 09 '20 05:01 lock[bot]