Timestamp data type in CDK schema

Summary

Specify the correct data type for timestamps in CDK schema


Question

hi – i just noticed that timestamps are being cast as strings in the CDK. what’s the right data type i need to declare in the schema to cast a field as a timestamp? i tried timestamp and datetime and both were rejected



This topic has been created from a Slack thread to give it more visibility.
It will be on Read-Only mode here. Click here if you want to access the original thread.

Join the conversation on Slack

["timestamp-data-type", "cdk", "schema"]

New message text here

hmm, i’m getting this error message: Value is not accepted. Valid values: "array", "boolean", "integer", "null", "number", "object", "string".

is the documentation wrong?