-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: strict mode: unknown keyword: "labels" #277
Comments
I have the same issue, but I'm just running |
I got the same when running in dev mode, however if I changed the function below in the generated code
from
to
Then it works |
Thanks for reporting this. The last update came in with the validation that should've been disabled for production. Pushing a fix right now. |
The latest release should fix these errors: https://github.com/segmentio/typewriter/releases/tag/v8.0.10 Ping me if this still happens to you! |
@oscb still happens to me
here is an example event that's been generated
and the validateAgainstSchema function
The error is
|
+1 this |
Validation error when generating plan
Step 1
Setup a plan in Segment UI and add labels to the events
Step 2
Run
Step 3
Receive error
Error: strict mode: unknown keyword: "labels"
which seems to come from AJVFull Error Below
Step 4
Run
npm typewriter
and generation seems to work fineThe text was updated successfully, but these errors were encountered: