Type of CookType in the JSON

Hi there,

I wonder if the type of cookType in the JSON files are just strings, because in the spec it is a list of all-uppercase cook types. Here is an excerpt:

“ cookType ": [ EXEC , SOUS , TOURNANT , ROAST ],

Is this just an error in the spec or am I missing out on something?

Thanks in advance!

I believe that it’ll be like in the provided example json file (" kitchenStaff ": {"TOURNANT ": 1}), so that kitchenstaff will occur as an own class, where each of the given cooktypes will be handled as a property that is assigned an int, that corresponds to the number of cooks of this type the Restaurant owns. The Types probably will indeed be written with only uppercase Letters, but it would be nice to get confirmation by a tutor.

Regarding this I got an additional question: Kotlin requires property names to start with a lowercase letter and gives out a warning if not. How will this be handled, can we just ignore it? Or do we have to use @SerialName if we use serialization?