UniversityRadioYork / MyRadio

University Radio York's back-end radio management system
https://ury.org.uk/myradio
16 stars 16 forks source link

URL Param bool parsing doesn't seem to be working #790

Open Brookke opened 5 years ago

Brookke commented 5 years ago

Passing a true/false for a URL get param eg https://ury.org.uk/api/v2/podcast/allpodcasts?api_key={{api_key}}&includeSuspended=false doesn't work and instead a 1 or 0 has to be used.

Points of interest: https://github.com/UniversityRadioYork/MyRadio/blob/6ab919704ee682192a8385c56c060c24df7b176d/src/Classes/ServiceAPI/MyRadio_Podcast.php#L859

https://github.com/UniversityRadioYork/MyRadio/blob/6ab919704ee682192a8385c56c060c24df7b176d/src/Classes/ServiceAPI/MyRadio_Swagger.php#L89-L91

LordAro commented 5 years ago

Probably related to #477