Replies: 2 comments 2 replies
-
Can you send me your code with the enums so that I can run it in our playground? |
Beta Was this translation helpful? Give feedback.
-
There are two problems (check it out in our playground). The first is the pipe of The same problem occurs when using |
Beta Was this translation helpful? Give feedback.
-
Hi everyone,
i've few schemas in my project as shown below,
so basically, I have a common schema with common fields and other schemas merged with the common schema.
The thing I'm trying to achieve is, that if the
QuestionLevel
=SUBJECT
thenMetadata.Subjects
shouldn't be empty or null, but ifQuestionLevel = "MODULE"
thenMetadata.Subjects
can be empty or null, but thenMetadata.Modules
shouldn't be.adding the
[v.custom(input => validateMetadata(input), "Subject shouldn't be empty")]
to my common schema is throwing an error in myvariant
method,how should i approach this issue? any help would be much appreciated
Beta Was this translation helpful? Give feedback.
All reactions