https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35218

            Bug ID: 35218
           Summary: No tests for /erm/sushi_service
 Change sponsored?: ---
           Product: Koha
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P5 - low
         Component: REST API
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

This response definition is weird:

      200:
        description: A sushi service
        schema:
          items:
            $ref: "../swagger.yaml#/definitions/erm_sushi_service"
          type: object

`items` applies to `array` types. When digging in the tests and code to find
out wether it returns an array of objects, or an object, I found out there are
actually no tests for this endpoint!

I'm removing the stray 'type: object' entry there because it makes some other
tests fail. But please provide tests, and proof of the expected behavior.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to