StreetCode icon indicating copy to clipboard operation
StreetCode copied to clipboard

[API][Chronology block] The timelineId and modelState keys accept invalid data when creating a timeline card

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

Environment: all Reproducible: always Build found: a7d807f

Preconditions

  1. Open Postman.
  2. Choose the POST method.
  3. Enter valid endpoints.
  4. Fill in all mandatory keys for creating Streetcode.
Issue Steps to reproduce Steps to reproduce Expected result Status
1. Key timelineItems modelState 1. In "timelineItems" block key "modelState" enter:
1.1. 1,
1.2. 2,
1.3. 4,
1.4. -1.
2. Click the button Send.
'200 OK' Streetcode and new historical context are created The response returns a '400 Bad Request' status with the message 'When creating the timeline card "modelState": 0'. Fail
2. Key historicalContexts timelineId 1. In "historicalContexts" block key "timelineId" enter:
1.1. 1,
1.2. -1.
2. Click the button Send.
'200 OK' Streetcode and new historical context are created The response returns a '400 Bad Request' status with the message 'When creating the timeline card "timelineId": 0'. Fail
3. Key historicalContexts modelState 1. In "historicalContexts" block key "modelState" enter:
1.1. 1,
1.2. 2,
1.3. 4,
1.4. -1.
2. Click the button Send.
'200 OK' Streetcode and new historical context are created The response returns a '400 Bad Request' status with the message 'When creating the timeline card "modelState": 0'. Fail

User story: #124

iskoryk avatar Apr 01 '24 15:04 iskoryk