Skip to content

List.{dataSetsMatchingPattern,membersMatchingPattern}: apiResponse property is the list of items #2410

Open
@traeok

Description

Describe the bug

When using the List.membersMatchingPattern function in the z/OS Files SDK, the returned apiResponse property is the list of items, rather than the format returned by other list functions in this SDK.

Expected and actual results

Invoke the List.membersMatchingPattern function with a valid session, data set name and list of match patterns. Save the response to a variable.

Expected results: The response matches the same format as List.dataSet and List.allMembers, containing an apiResponse property that is an object with an items property inside, e.g.:

{
    "success": true,
    "commandResponse": "3 member(s) were found matching pattern.",
    "apiResponse": {
        "items": [{ "member": "M1" }, { "member": "M2" }, { "member": "M3" }]
    }
}

Actual results: The response contains an apiResponse property that is an array of items rather than an object.

{
    "success": true,
    "commandResponse": "3 member(s) were found matching pattern.",
    "apiResponse": [{ "member": "M1" }, { "member": "M2" }, { "member": "M3" }]
}

Describe your environment

Additional context

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority-lowLegit issue but cosmetic or nice-to-haveseverity-lowBug that makes the usage of the Zowe less convenient but doesn't impact key use casesv4Prospective changes for v4

    Type

    No type

    Projects

    • Status

      Low Priority

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions