-
Notifications
You must be signed in to change notification settings - Fork 8
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
Issues with adding mediaType to ids:representation (v4.2.5) #13
Comments
@JohannesLipp We see, that this is still an open issue. Currently data offerings of DSC contain the media type in following structure:
See full example here: https://international-data-spaces-association.github.io/DataspaceConnector/Documentation/v6/Messages#resourceupdatemessage A proper structure is described by Julia above. As far as I seem this shall be possible to archive by simple calling constructor and setting the id as parameter Java-Representation-of-IDS-Information-Model/de/fraunhofer/iais/eis/IANAMediaTypeBuilder.java Line 17 in cbff893
Am I right? Are you aware of any problems, which might occur in other components when setting the id correctly? @sebplorenz @timwirtz86 Another related issues: International-Data-Spaces-Association/InformationModel#224 |
@SebastianOpriel @juliapampus what is the respective infomodel version for "Infomodel library v4.2.5"? In short: IMHO @SebastianOpriel suggests a correct solution by passing the IANA URL as id to the respective builder method. The |
Currently 4.2.7 is used: https://github.com/International-Data-Spaces-Association/IDS-Messaging-Services/blob/1f55002f8063b6af4af2615fbf850c815446f092/pom.xml#L89 Thanks for your opinion, we will take that as an request for improvement. |
Using Infomodel library v4.2.5.
According to the Infomodel, it should be possible to add official IANAMediaTyoes and custom media types to the representation:
With the newest library version, the IANAMediaTypeBuilder has been removed. Since the MediaType and CustomMediaType do not inherit from each other and both classes are enums, it is not possible to add other types than the provided
json
orother
. Can you give a hint on how to implement? Perhaps I have missed something.The text was updated successfully, but these errors were encountered: