I am doing a simple mapping and the compiler doesn't recognize the record's members.
The image shows the type OpeningHours itself is clearly ok, with all 3 properties showing:
But hovering over the marked property shows:
error FS0039: The field, constructor or member 'Day' is not defined.
Namespaces are all referenced and I even assign to the very same properties few lines below without any issue.

Based on the constructor and properties, it looks like
OpeningHoursis defined as a class, not a record. The record syntax can't be used with classes, so the solution is either to changeOpeningHoursto a record, or to instantiate it using its existing constructor.