Closed rajamadhu closed 5 years ago
Hi,
I'm happy to take a look at this, but the more information you can share the better - ideally a simple project which reproduces the problem. But at the very least can you include what locationmodel
is defined as?
Just so you know the error "Multiple custom attributes of the same type found" is thrown whenever you use more than one attribute where AllowMultiple
is false. The only attribute in this library is LinksAttribute
which is set to AllowMultiple=true
Thanks
Jamie
Hi Jamie, Thanks for your effects, Please find the sample project below.
In this sample project you can reproduce the same issue , which i am facing.
URL: https://github.com/rajamadhu/RiskFirstHateoas.git
Kindly help me as much you can.
Hi,
I'm happy to take a look at this, but the more information you can share the better - ideally a simple project which reproduces the problem. But at the very least can you include what
locationmodel
is defined as?Just so you know the error "Multiple custom attributes of the same type found" is thrown whenever you use more than one attribute where
AllowMultiple
is false. The only attribute in this library isLinksAttribute
which is set toAllowMultiple=true
ThanksJamie
Hi Jamie,
Thanks for your reply, Please find the sample project below.
In this sample project you can reproduce the same issue .
URL: https://github.com/rajamadhu/RiskFirstHateoas.git
Your help is much appreciated
Thanks! Raja Madhu
This bug has been fixed. I will deploy a new version to nuget shortly.
Thanks
Jamie
I am having an api like below with two routes (one for backward compatibility)
Also, I have configured the Startup like below
I am getting an exception "Multiple custom attributes of the same type found", while trying to call the api. It fails in the AddLinksAsync method. Can someone throw more light on how to resolve the issue?
Your help is much appreciated
Thanks