When you don't agree with the naming of your backe...
# random
l
When you don't agree with the naming of your backend guy(s) 😅 :
Copy code
@JsonSerializable
data class UserInfo(
        @Json(name = "title")
        val civility: String,
        @Json(name = "forename")
        val firstName: String,
        @Json(name = "name")
        val lastName: String,
        val email: String,
        @Json(name = "gsm")
        val mobilePhoneNumber: String,
        @Json(name = "street1")
        val addressFirstLine: String,
        @Json(name = "street2")
        val addressSecondLine: String,
        @Json(name = "zip")
        val postalCode: String,
        val city: String,
        @Json(name = "licence")
        val licenseNumber: String
)
@Json @Json @Json @Json
🤣 5
🧌 3
l
just pointing, licence is the noun while license is a verb
imho licenceNumber makes more sense
p
this is just never worth it..
brings so much confusion.. I usually prefer bad but consistent names over slightly better inconsistnt names
a
the license / licence depends on the region
l
the more you learn…!
l
@leosan "licence": this is the way the french version is written
s
@leosan that’s not even true, at least not in English - the difference there is British vs. American usage
y
Web """developers"""
s
agree with @poohbar, consistency is king