StreetCode icon indicating copy to clipboard operation
StreetCode copied to clipboard

[API][Admin/Streetcode] The field "dateString" accepts invalid data

Open iskoryk opened this issue 1 year ago • 2 comments
trafficstars

Environment: all Reproducible: always Build found: a7d807f

Preconditions

  1. Open Postman.

Steps to reproduce

  1. Choose the POST/PUT method.
  2. Enter valid endpoints.
  3. Check in all mandatory keys for creating/updating Streetcode.
  4. Enter the date in the field "dateString":
  • [x] Special characters "!№;%:?*+,~@#$&"

  • [x] Letters from the Latin alphabet

  • [x] Amount of characters more than limits 100<

  • [x] Empry field

Actual result The Streetcode is published and the field "dateString" is filled.

Expected result The response returns a status of "400 Bad Request" with the message "The field "dateString" can only contain Cyrillic letters, numbers, dashes (–) and parentheses".

User story: #115

iskoryk avatar Apr 03 '24 10:04 iskoryk