sstenchlak / schema-generator

https://kodi-schema-generator.netlify.app/
0 stars 0 forks source link

Removing a datatype from attribute sets it to "" #36

Closed cermakmarek closed 2 years ago

cermakmarek commented 2 years ago

Normally, a newly added attribute has "dataTypes": [{"dataType": null}] when exported as a model, but when a datatype is added (as a well-known URI or text) and then removed, the object model shows "dataTypes": [{"dataType": ""}], i.e. an empty string instead of null. No indication of this difference is visible to the user, so it would be better to generate null whenever the string is empty.