You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.
There are many instances were a value can only be one of multiple strings, like the appointment status that can be "not_found", "being_watched" or "dispute_responded". In this and all the other similar cases we should avoid hard-coding the string, for example by using an Enum. For example we could have and AppointmentStatus enum, with keys AppointmentStatus.NOT_FOUND, AppointmentStatus.BEING_WATCHED and AppointmentStatus.DISPUTE_RESPONDED. This will protect against typos and make future refactorings much easier, should there ever be a need of changing the allowed values.
The text was updated successfully, but these errors were encountered:
There are many instances were a value can only be one of multiple strings, like the appointment status that can be
"not_found"
,"being_watched"
or"dispute_responded"
. In this and all the other similar cases we should avoid hard-coding the string, for example by using an Enum. For example we could have andAppointmentStatus
enum, with keysAppointmentStatus.NOT_FOUND
,AppointmentStatus.BEING_WATCHED
andAppointmentStatus.DISPUTE_RESPONDED
. This will protect against typos and make future refactorings much easier, should there ever be a need of changing the allowed values.The text was updated successfully, but these errors were encountered: