TUM-Dev / eat-api

Simple static API for some (student) food places in Munich.
https://eat-api.tum.sexy
MIT License
21 stars 14 forks source link

Translate dish types #260

Open Friendly-Banana opened 3 months ago

Friendly-Banana commented 3 months ago

fixes #253

I couldn't classify all types as some canteens have dynamic dish types. If we use str | DishType, the API becomes harder to use. For now I've duck typed around this problem with the CUSTOM class. Any suggestions on how to accomplish this in a better way?