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
Describe the bug
When creating a watch via an API call to POST /api/v1/watch, or updating a watch via PUT /api/v1/watch/:uuid, if the JSON body contains non-empty "browser_steps":[...] array, the API responds with 400 Bad Request due to validation error. The body claims that items in the "browser_steps" array must be of type "String". Apparently, JSON schema is not correct.
Version
0.48.06
How did you install?
Docker
To Reproduce
Steps to reproduce the behavior:
Fetch a JSON of an existing watch that contains browser steps using GET /api/v1/watch/:uuid.
Set to null unnecessary properties like "uuid", "date_created", "content-type".
Create a new watch using POST /api/v1/watch and the JSON from step 2.
See error response.
Remove "browser_steps" property or set it to empty array from the JSON.
Create a new watch using POST /api/v1/watch.
See success.
Expected behavior
200 Success
The text was updated successfully, but these errors were encountered:
Sure test_watch.json
The JSON contains browser steps (fetched from a real existing watch). Import it as is to see the error. Replace with empty array to see success.
Describe the bug
When creating a watch via an API call to
POST /api/v1/watch
, or updating a watch viaPUT /api/v1/watch/:uuid
, if the JSON body contains non-empty"browser_steps":[...]
array, the API responds with 400 Bad Request due to validation error. The body claims that items in the "browser_steps" array must be of type "String". Apparently, JSON schema is not correct.Version
0.48.06
How did you install?
Docker
To Reproduce
Steps to reproduce the behavior:
GET /api/v1/watch/:uuid
.POST /api/v1/watch
and the JSON from step 2.POST /api/v1/watch
.Expected behavior
200 Success
The text was updated successfully, but these errors were encountered: