plantbreeding / BrAPI

Repository for version control of the BrAPI specifications
https://brapi.org
MIT License
57 stars 32 forks source link

/traits call uses a "observationVariableDbId" filter which is not in the returned properties #597

Open guignonv opened 7 months ago

guignonv commented 7 months ago

The "observationVariableDbId" property, as it can be used as filter, should appear in the returned properties.

daveneti commented 7 months ago

The relationship between observation variable and trait is many to one. A trait can have multiple observation variables associated with it. So it would not be appropreate to return all the observartion variables for a trait in the response. It is better to use the observationVariables endpoint with the trailDbId/traitName/traitPUI filter.