Speakeasy Logo
Skip to Content

Control property casing: snake, camel

TypeScript SDKs support configurable property naming to match your API’s field naming conventions. Use the modelPropertyCasing configuration to control whether generated TypeScript types use camelCase or snake_case property names.

Configuration

Configure property naming in your gen.yaml file:

Options

  • camel (default): Properties use camelCase naming (e.g., firstName, createdAt)
  • snake: Properties use snake_case naming (e.g., first_name, created_at)

Examples

camelCase naming (default)

snake_case naming

Last updated on