You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fill the BODY PARAMS with:
name="Regex test"
element="text"
format="regex:/^[0-9]{8}$/"
Check on the right panel, the cURL command should end like this: --data {"show_in_email":false,"field_encrypted":false,"element":"text","name":"Regex test","format":"regex:/^[0-9]{8}$/"}
Click on the Try It button
See error message (relative to the format field):
"The selected format is invalid"
The same happens on my local Docker installation (image snipe/snipe-it:v5.1.4).
Expected behavior
The custom field should be correctly created.
Screenshots
Server (please complete the following information):
Snipe-IT Version 5.1.4
OS: Docker official image
Web Server: Docker official image
PHP Version: Docker official image
Desktop (please complete the following information):
OS: Windows
Browser: Chrome
Version 87
Smartphone (please complete the following information):
n/a
Error Messages
The cURL output is: {"status":"error","messages":{"format":["The selected format is invalid."]},"payload":null}
Additional context
Fresh install
Installed via Docker
The text was updated successfully, but these errors were encountered:
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
Please confirm you have done the following before posting your bug report:
Describe the bug
When I use API to create a new custom field with regex validation, I get the error
"format":["The selected format is invalid."]
.To Reproduce
Steps to reproduce the behavior:
name="Regex test"
element="text"
format="regex:/^[0-9]{8}$/"
cURL
command should end like this:--data {"show_in_email":false,"field_encrypted":false,"element":"text","name":"Regex test","format":"regex:/^[0-9]{8}$/"}
Try It
buttonformat
field):"The selected format is invalid"
The same happens on my local Docker installation (image
snipe/snipe-it:v5.1.4
).Expected behavior
The custom field should be correctly created.
Screenshots
Server (please complete the following information):
Desktop (please complete the following information):
Smartphone (please complete the following information):
n/a
Error Messages
The cURL output is:
{"status":"error","messages":{"format":["The selected format is invalid."]},"payload":null}
Additional context
The text was updated successfully, but these errors were encountered: