ErwanTLG / Challonge.Net

An unofficial .Net wrapper for the Challonge API (https://challonge.com)
https://erwantlg.github.io/Challonge.Net/index.html
MIT License
0 stars 1 forks source link

Removed ArgumentNullException for tournament URL on create. #3

Closed QuantumToasted closed 3 years ago

QuantumToasted commented 3 years ago
Per the v1 API spec for creating tournaments: Name Description
tournament[url] challonge.com/url (letters, numbers, and underscores only); when blank on create, a random URL will be generated for you

Null tournament urls should be valid, and not passed as a query parameter (when null) so that the API can return a randomly-generated URL instead.

Not included in this PR, but it might be a valid change as well to remove the requirement for the parameter url here and instead make it optional like the rest of the parameters.