Make identification of model name (type) more robust
If the type field "pins" the value using enum in the JSON-Schema model and does not define a default value the parsing fails.
Expected Behavior
While technically working correctly it should be more robust
Current Behavior
fails on parsing the type name in __get_name()
Possible Solution
If no default value for type is supplied and a single value enum is used, use the according value