OpenAssetIO / OpenAssetIO-Manager-BAL

A contrived "asset management system" for OpenAssetIO integration test cases.
Apache License 2.0
9 stars 6 forks source link

[Core] Fix resolve when trait has no properties #102

Closed feltech closed 7 months ago

feltech commented 7 months ago

Discovered whilst updating OpenAssetIO/OpenAssetIO-MediaCreation#69 after OpenAssetIO/OpenAssetIO#1217. The API docs for resolve say

Only traits that are applicable to each entity, and for which the manager has data, will be imbued in the result.

However, if an entity in the JSON library has a trait as part of its trait set, but that trait has no properties (either because that trait has no associated properties, or because it's not set in the JSON), then it was imbued in the TraitsData regardless.