Open
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
Metadata
Assignees
Labels
Type
Projects
Status
Low Priority
Activity