openaq / openaq-api-v2

OpenAQ API
https://api.openaq.org
43 stars 9 forks source link

Feature/add license to location #337

Closed caparker closed 7 months ago

caparker commented 7 months ago

Adds the license model to the locations endpoint. I went with a list object because of the dates associated with the licenses. Right now we only have one license associated with each provider but that could easily change in the future.

@russbiggs One issue that came up is that all the licenses are open ended, with no date_to, which is the way that we want it, but that means the date_to value in the model is None. Would it be better to use the exclude_none attribute on the models to remove nulls?