-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistencies in beaconMap
between entry types and paths (run, analysis)
#125
Comments
And a wish from my side: I'd rather love to have an explicit statement about entry type <-> path element somewhere, e.g. in the form of
etc. which would make it much more explicit for programmatic retrieval than chomping off the last element of the |
I see no inconsistency here. The endpoint name shouldn't reflect neither entry type name, nor the path. Cheers, D. |
@redmitry Well, I wouldn't mind how you name your endpoint as long as path & entry type are provided. But it is inconsistent:
compared to:
Therefore fix needed. Also: Such inconsistencies can lead to a break of implementations, e.g. if you collect all possible endpoints etc. |
Well, this shouldn't affect implementations at all, but "endpointSets": {
"Variants": {
"entryType": "genomicVariant",
"rootUrl": "https://beacons.bsc.es/beacon/v2.0.0/g_variants",
}, in this logic "Individuals": {
"endpoints": {
"genomicVariant": {
"returnedEntryType": "genomicVariant",
"url": "https://beacons.bsc.es/beacon/v2.0.0/individuals/{id}/g_variants"
} "genomicVariant" should be "Variants" ¯_(ツ)_/¯ |
@redmitry Where is the
... from? Shouldn't be anywhere (unless it ended somewhere in a branch?). Back to case: IMO fix is sound. |
Hm... u r right. That's my beacon that still uses "old" names... CRG has been updated: |
As Dmitry was pointing, the "inconsistent" names are just names like the operationId in OpenAPI. So I'll be more in favour of that instead of making all the names more similar to entryTypes make them clearly dissimilar. @mbaudis, I would need more details on your needs for a path, as I don't fully understand the root of the problem. BTW, I've spotted that in the current master the description for the "EntryType" attribute in "definitions" is emptuy. We must correct that, if not done in any of the branches already. |
The
beaconMap
schema has a number of inconsistencies in theendpoints
definitions which preclude its use for determining path <-> entry type relations. Starting here:beacon-v2/models/src/beacon-v2-default-model/beaconMap.yaml
Line 19 in afaf76a
... use the wrong entry type key; should be:
This is repeated throughout the document, but not everywhere; e.g. while it is
runs
inindividual
, it isrun
in biosample.The text was updated successfully, but these errors were encountered: