Swagger modelsObject: better constraints for data types