Skip to content

The 'status' field is repeated two times #10

@Onotot

Description

@Onotot

As a result of the query v1/item/get we get this response
{ "pending_items": [ { "title": "washing", "status": { "status": "PENDING" } } ], "done_items": [], "pending_item_count": 1, "done_item_count": 0 }
As a result, when testing Postman, we get an error when testing the 'status' field
pm.test("Pending item has the correct status", function() { if (result["pending_items"][0]["status"] !== "PENDING") { throw new Error("status of the pending item is not 'pending'"); } })
This can be easily fixed, but I don't understand if there should be a repetition of the 'status' field or if there is an error somewhere.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions