-
Notifications
You must be signed in to change notification settings - Fork 4
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
Allow plugins to override mediatypes registered by oteapi-core #208
Comments
Have you tried to do this? |
Yes, I tried it and oteapi troughs an exception about conflicting mediatypes. Splitting the dataresource datamodel into download and parse may solve my problem, since the new What happens if a plugin defines a download strategy with the same schema as oteapi-core? |
This has been solved - closing it |
How has this been solved? The last point was that an exception was thrown, has this been resolved by some PR? |
Wrongly closed. |
Currently there is no semantics in how the strategies in oteapi-core stores information in the session. This is addressed by oteapi-dlite by storing everything in a semantically well-defined collection accessible from the session. But oteapi-dlite is not able to e.g. register a json parser with mediatype
application/json
since that mediatype is already taken by oteapi-core.The same is the case for accessService.
Current this issue blocks proper use of oteapi-dlite.
The easiest solution would be to move all current strategies in oteapi-core into a separate plugin.
But it might still be useful for the user to have a way to define the precedence between plugins and strategies in the case when two plugins provides a strategy for the same mediaType/accessService.
The text was updated successfully, but these errors were encountered: