Skip to content

Resolve "Bug: unknown validator: phone "

What does this MR do and why?

The reason should be the api file jh/lib/jh/api/users.rb is loaded before jh/config/initializers/grape_validators.rb, but I can NOT reproduce the unknown validator error on my local even mocked as production.

Let's see if we can fix this after putting register_validator line to that api file.

  • Move custom grape validator to api file

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #1559 (closed)

Martin Tan 编辑于

合并请求报告

加载中