Details
-
Bug
-
Status: Closed (View Workflow)
-
P3
-
Resolution: Won't Do
-
None
-
None
-
None
-
-
Core: Platform
Description
In inventory, contributors "name"/"name type" can be the same while the "type" can vary. This additional qualification of a contributor is not expressed when returning contributors via the codex. Therefore, you can have duplicated contributors returned. The codex schema requires contributors, name/type to be unique. Any client performing schema validation will fail in this case.
The code uses a Set for Contributors. However, Contributor is a generated class and the generated classes do not include equals and hashCode, so Set will not be able to determine equality. Perhaps RMB with raml 1.0 and update libraries for code generation will be able to generate equals and hashCode. For now, we should do something like use a Contributor wrapper class with equals/hashCode defined.