lichess-org / api

Lichess API documentation and examples
https://lichess.org/api
GNU Affero General Public License v3.0
428 stars 142 forks source link

Define timestamp values as "int64" numbers #177

Closed canut closed 2 years ago

canut commented 2 years ago

The data type of timestamp values is defined as "number". Specifying that those numbers are 64 bits integers is useful for API client generators who must decide between int32 or int64 types.

As an example, NSwag.CSharpClientGenerator is defining the createdAt property of the User object as int instead of long which leads to int overflow at runtime.