pagopa / interop-be-monorepo

Apache License 2.0
0 stars 2 forks source link

IMN-784 - Fixing attribute duplicate errors #1136

Closed ecamellini closed 1 week ago

ecamellini commented 2 weeks ago

Closes IMN-784

Before this PR

The current attributeDuplicate error is misleading:

✅ in the case of verified/declared attribute creation it is thrown when an attribute with the same name already exists, with the message: ApiError during Attribute creation with name ${attributeName}

❌ in the case of certified attribute creation, the error is thrown only when an attribute with the same name and code already exists, but the error message is the same

Fix in this PR: