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:
ids:MediaType. Removed instances for ids:IANAMediaType.
Media types via ids:mediaType with range ids:IANAMediaType should be used with the corresponding IANA URLs, as these have complete coverage. E.g., for JSON-LD:
"ids:mediaType": {
"@id": "https://www.iana.org/assignments/media-types/application/ld+json",
"@type": "ids:IANAMediaType"
}
For custom media types (ids:CustomMediaType), it is advised to use a recognizable unique identifier.
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 or other. Can you give a hint on how to implement? Perhaps I have missed something.