I have an event which does not have any properties. So when I try to create segment client for my iOS project using npx typewriter command the properties struct is not getting created. Instead it creates a dcitionary type alias
To Reproduce
my json event
{
"createdAt": "2022-11-03T07:21:24.000Z",
"deprecatedAt": "0001-01-01T00:00:00.000Z",
"jsonSchema": {
"$id": "event_creation_completed",
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "User finishes the event creation process. Event is triggered when user clicks on the \"Create\" button on the top right of the Event Creation screen.",
"eventMetadata": {
"name": "event_creation_completed",
"type": "TRACK"
},
"properties": {
},
"type": "object"
},
"key": "event_creation_completed",
"type": "TRACK",
"updatedAt": "2022-11-03T07:21:24.000Z",
"version": 1
}
Describe the bug
I have an event which does not have any properties. So when I try to create segment client for my iOS project using
npx typewriter
command the properties struct is not getting created. Instead it creates a dcitionary type aliasTo Reproduce
my json event
Created code after running
npx typewriter
If I have some other events without any properties. eg: event_creation_began Then the typewriter will autogenerate method
This will cause error while running.
Screenshots Platform (please complete the following information):