openminted / omtd-share-schema

OMTD-SHARE schema (versioned)
0 stars 0 forks source link

DataFormat mimeType and dataFormat elements should not be enumerations #1

Open reckart opened 7 years ago

reckart commented 7 years ago

DataFormat mimeType and dataFormat elements should not be enumerations...

Or if they are, then it would be nice if they could include a "UNSET" option. Why?

Because if I create a Java annotation class for them, then I cannot make them optional.

I am now treating them as String in the OMTDS Annotations and if a user puts a string which is not in the enum, it will be ignored.

pennyl67 commented 7 years ago

I suppose by UNSET you mean something like the "other" option we currently have?

For one of the following versions (I don't know if the registry force has the time to implement this till end of August), the enumeration will have a pointer to the dataFormat types from the ontology and a free text for the new ones. Will that be ok?

reckart commented 7 years ago

I mean a value that could be used on the Java side if there is no value set.

reckart commented 7 years ago

If it is no longer an enum but a simple string, then it is ok.