lichess-org / api

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

Update Title type to denote null possibility. #158

Closed CrashAndSideburns closed 2 years ago

CrashAndSideburns commented 2 years ago

Whenever the API returns a Title object, that object may be null in the event that the player is untitled. Previously, this was dealt with inconsistently throughout the docs. This PR encodes the null possibility in the Title type, and switches several instances of other types to Title for consistency.