I am missing the criteria for something: I can see in examples that types are sometimes in lower camel case (voucher) and sometimes in upper camel (Voucher).
I would expect to be Upper case, because they are classes, but for example in swagger for 670 the Payment Method:
"@type": {
"type": "string",
"enum": [
"cash",
"digitalWallet",
"tokenizedCard",
"bankAccountTransfer",
"bankAccountDebit",
"bankCard",
"voucher",
"check",
"bucketPaymentMethod",
"accountPaymentMethod",
"loyaltyPaymentMethod",
"directDebit"
],
"description": "Type of payment method (e.g.: bank card, cash, voucher,etc). "
}
But in 676 specifications:
@referredType": "Voucher",
"@type": "bankCard",
From 630 part 1 and 2 mention about the relation between resource and entity but I did not find an explanation there.
When should lower camel case, or the capital be used?
------------------------------
Jesus Marval
Liberty Latin America
------------------------------