Skip to content

feat(140): make snake_case ubiquitous #297

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

hudlow
Copy link

@hudlow hudlow commented May 9, 2025

Fixes #259.

Case transformation was going to continue to be a pain point, and snake_case was never clearly non-idiomatic for JSON. Better to consolidate behind a single case convention.

🍱 Types of changes

What types of changes does your code introduce to AEP? Put an x in the boxes
that apply

  • Enhancement
  • New proposal
  • Migrated from google.aip.dev
  • Chore / Quick Fix

📋 Your checklist for this pull request

Please review the AEP Style and Guidance for
contributing to this repository.

General

💝 Thank you!

@hudlow hudlow requested a review from a team as a code owner May 9, 2025 18:31
@toumorokoshi toumorokoshi requested a review from rofrankel May 9, 2025 18:48
hyphens (`-`) for underscores (`_`), emitted in lowercase, and parsed
case-insensitively.

**Note:** Regrettably, [ProtoJSON][proto-json] and [gRPC-Gateway][grpc-gateway]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need "Regrettably"? Feels a bit editorial for the otherwise dry tone of the AEPs.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm certainly not married to it, but I generally prefer to keep things a bit human? Happy to defer to consensus.

JSON field names be in `lowerCamelCase` (whether or not they are backed by
equivalent protobufs).

**Important:** While APIs compliant with this AEP are required to use
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a super nit, but these Note and Important blocks are related to each other -- but we aren't really representing that in the Markdown. I doubt we can nest an Important inside a Note, but maybe we just make this all one Important block? WDYT?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently aside blocks don't seem to support more than one paragraph and it seemed unruly as a single paragraph so I did my best.

@hudlow hudlow marked this pull request as draft May 9, 2025 22:19
@hudlow
Copy link
Author

hudlow commented May 9, 2025

Demoting to a draft because I think this change might merit a blog post.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

snake_case or camelCase for CEL selectors?
2 participants