return events that don´t include any data#21
Conversation
|
I belive we should not allow creation of |
|
This spec depends on the For example what happens to a stream when a linked event´s original stream is deleted. Is the event ordering re-arranged? |
Hmm maybe this does not make any sense - I would just raise an error - because what else we could do ? |
| type = entry['eventType'] | ||
| source_event_uri = entry['id'] | ||
| data = JSON.parse(entry['data']) | ||
| data = entry['data'] ? JSON.parse(entry['data']) : nil |
There was a problem hiding this comment.
I'm not sure if nil is good choice here - why not empty hash {} ?
I'm not sure that I should return nil if
eventTypeis not present. Please correct me if this is incorrect.