preserveSchemaCasing property
Optional. When true, schema and enum names are projected into the
target language by stripping separator characters (spaces, dashes,
dots, underscores) while preserving the casing of every other
character. Defaults to false — the default behaviour, which
normalises every name to PascalCase and loses internal acronym and
lowercase-prefix casing (e.g. XMLHttpRequest becomes
XmlHttpRequest).
Examples (flag true):
kUserStatus→kUserStatusXMLHttpRequest→XMLHttpRequestiOSDevice→iOSDeviceURL→URLHTTPSConnection→HTTPSConnectionUserStatus→UserStatususer_status→userstatusMy-Class→MyClass
Useful when the spec author has deliberate casing intent the
generated code should honour (e.g. XMLHttpRequest, a k-prefixed
constant-style enum). replacement_rules cannot recover this because
the normalisation runs first; this flag opts out of the normalisation
instead.
Implementation
final bool preserveSchemaCasing;