Support configurable casing styles in Azure Core - #5602
Timothee Guerin (timotheeguerin) merged 4 commits into
Conversation
|
All changed packages have been documented.
Show changes
|
📦 Package size report1 package changed size, +1.07 KB (+0.0%) packed overall.
12 package(s) with no notable change
Packed = gzipped |
commit: |
|
You can try these changes here
|
catalinaperalta
left a comment
There was a problem hiding this comment.
lgtm, just one doc improvement
Services with existing snake_case APIs, such as Foundry, currently have to disable Azure Core's
casing-stylerule instead of using it to enforce their own conventions. This also prevents shared libraries from packaging an appropriate naming policy in their rulesets.Allow casing to be configured per declaration category, so a service can require snake_case properties and members while retaining the usual type and operation naming:
Each category accepts
camelCase,PascalCase,snake_case, orfalse. Existing defaults and diagnostics are unchanged; additional checks for unions, enums, scalars, and their applicable members are opt-in. Options are schema-validated and can be supplied by a library ruleset or overridden in a service's configuration.