Skip to content

any.external: can't disable label #2635

@m-kemarskyi

Description

@m-kemarskyi

Support plan

  • is this issue currently blocking your project? (yes/no):yes
  • is this issue affecting a production system? (yes/no):yes

Context

  • node version: 14.16.1
  • module version: 17.4.0
  • environment (e.g. node, browser, native): node
  • used with (e.g. hapi application, another framework, standalone, ...): standalone
  • any other relevant information:

How can we help?

I've decided to use any.external method to implement custom async validation. Async validation works perfectly, but error message is modified with a label:
Снимок экрана 2021-07-13 в 14 48 25
Then I've found "errors.label" parameter for a validateAsync method. Setting label to false removed the label, but not the parentheses:
Снимок экрана 2021-07-13 в 14 50 14
Снимок экрана 2021-07-13 в 14 50 51
As you can see on a screenshot, I've also tried to set render to false, but it doesn't work. Could you help me with it? How can I disable it? As a result I want to receive my error message without any modifications. Thanks in advance!

Metadata

Metadata

Assignees

Labels

bugBug or defect

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions