Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

empty embedded list with unknownRel- relation name #162

Open
Archana6975 opened this issue Oct 22, 2024 · 0 comments
Open

empty embedded list with unknownRel- relation name #162

Archana6975 opened this issue Oct 22, 2024 · 0 comments

Comments

@Archana6975
Copy link

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-": []
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant