Skip to content

empty embedded list with unknownRel- relation name #162

@Archana6975

Description

@Archana6975

I have upgraded webapi hal package from 3.0.0 to 4.0.1. In the application when i initiate search call with keyword not available in list (for example: when i search for user name not available) in existing 3.0 package i get response without embedded list. But after upgrading to 4.0.1 when i initiate same call getting response with embedded which makes application crash. Is there any way to ignore embedded list if list is empty for latest version.

sample old response :

{
"TotalRecords": -1,
"TotalDisplayRecords": -1,
"_links": {
"self": {
"href": "/api/roles"
}
}
}

sample new response :

{
"TotalRecords": -1,
"TotalDisplayRecords": -1,
"_links": {
"self": {
"href": "/api/users"
}
},
"_embedded": {
"unknownRel-": []
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions