All identifiers (schema names, field names, etc.) should be in snake_case and should be all lower case. Event fields are often imported into case-insensitive RDBMS SQL systems. Mixing captial and lower case letters in e.g. Hive or MySQL table and field names can be confusing and cause issues in systems and code that access those SQL systems.
Noticed while poking around at T389819
$event = [ 'userId' => $userId, 'userName' => $user->getName(), 'isSelfMade' => $isSelfMade, 'campaign' => $req ? $req->campaign : '', 'displayMobile' => $displayMobile, // @todo: Remove these unused fields when they're no longer required by the schema. 'token' => '', 'userBuckets' => '', 'isApi' => defined( 'MW_API' ), 'sul3Enabled' => $sul3Enabled, ];
properties: event: type: object required: - token - userId - userName - isSelfMade - campaign - userBuckets - displayMobile - isApi properties: token: description: User token type: string userId: description: User ID' type: integer userName: description: Username of newly-created user type: string isSelfMade: description: >- False if existing user created this account for someone else, true otherwise type: boolean returnTo: description: >- Indicates the wiki page the user was on when initiating Create account. type: string returnToQuery: description: >- The query string, if any, for the wiki page the user was on when initiating Create account. type: string campaign: description: Contents of 'mediaWiki.campaign' cookie. type: string userBuckets: description: Contents of 'userbuckets' cookie. type: string displayMobile: description: Whether the mobile view is active. type: boolean isStable: type: string enum: - stable - beta - alpha description: >- Whether the user is seeing the regular non-beta, beta, or alpha version of the mobile site. (Not implemented as of 2013-02-12.) isApi: description: Whether the account creation is using API. type: boolean sul3Enabled: description: Whether Single User Login v3 is enabled for this request or not. type: boolean
Does this mean https://wikitech.wikimedia.org/wiki/Event_Platform/Schemas/Guidelines#Acceptable_identifier_regex isn't working?
Or are these not considered identifiers?