You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'm using typewriter and just encountered this problem where I get a validation error stating that JSON Schema doesn't match the Tracking plan spec in the console.
And when making this call to Segment I get this warning in my console:
"type": "Typewriter JSON Schema Validation Error",
"description": "You made an analytics call (undefined) using Typewriter that doesn't match the Tracking Plan spec.",
"errors": [
{
"keyword": "type",
"dataPath": ".products[0].destination_date_time",
"schemaPath": "#/properties/products/items/properties/destination_date_time/type",
"params": {
"type": "string"
},
"message": "should be string",
"schema": "string",
"parentSchema": {
"$id": "...",
"description": "....",
"format": "date-time",
"type": "string"
},
"data": "2023-11-09T10:45:00.000Z"
},
.
.
.
I have tried just giving it new Date() as value to check if it was my data that wasn't of the right type but I still get the same error. And if I try feeding it any other than Date typewriter will give me an error saying it only accepts Date types but then again I get this issue in the console when developing locally. Not sure if this is a known issue or not but wanted to raise this and ask if there is any way around getting this warning 😄
The text was updated successfully, but these errors were encountered:
About
Hello, I'm using typewriter and just encountered this problem where I get a validation error stating that JSON Schema doesn't match the Tracking plan spec in the console.
Environment
Using current version of
typewriter: 9.1.0
The problem
In my tracking plan I have a property called
destination_date_time
which is of typeDate time
.Automatically generated typewriter client file has this property listed as
destination_date_time?: Date;
The
plan.json
file has this specific property listed as:And when making this call to Segment I get this warning in my console:
I have tried just giving it
new Date()
as value to check if it was my data that wasn't of the right type but I still get the same error. And if I try feeding it any other thanDate
typewriter will give me an error saying it only accepts Date types but then again I get this issue in the console when developing locally. Not sure if this is a known issue or not but wanted to raise this and ask if there is any way around getting this warning 😄The text was updated successfully, but these errors were encountered: