Use javascript types for JSON schema compatibility