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

The notEmpty constraint is not working for Text type #866

Open
markfarkas-camunda opened this issue Feb 2, 2023 · 2 comments
Open

The notEmpty constraint is not working for Text type #866

markfarkas-camunda opened this issue Feb 2, 2023 · 2 comments
Labels
backlog Queued in backlog bug Something isn't working element templates spring cleaning Could be cleaned up one day

Comments

@markfarkas-camunda
Copy link

Describe the Bug

I created an element-template and realized that the notEmpty constraint is not working for Text type. The field is not indicated with the red outline and there is no error message when it is empty.

image

Steps to Reproduce

Best way to reproduce is to just use the template below, and look at the "Query/Mutation" text field.
graphql-connector-template.zip

Otherwise you can reproduce it by

  1. creating a new element template
  2. set the type to text
  3. add the
"constraints": {
    "notEmpty": true
}

part, or even add the "optional": false

Expected Behavior

When the text field is empty there should be a red outline and an error message saying: Must not be empty.

Environment

  • WebModeler in Chrome, and even in the Desktop Modeler
  • OS: Windows 11
  • Library version: latest
@markfarkas-camunda markfarkas-camunda added the bug Something isn't working label Feb 2, 2023
@smbea
Copy link
Contributor

smbea commented Feb 2, 2023

Thanks for the feedback. I can reproduce this issue.

@JillySechrest
Copy link

I can take this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Queued in backlog bug Something isn't working element templates spring cleaning Could be cleaned up one day
Projects
None yet
Development

No branches or pull requests

3 participants