Naming in Firestone: Impact and Conventions

In Firestone, the names you choose in your resource schema are propagated everywhere. A single name in your YAML file determines URLs, CLI commands, variable names in generated code, and documentation headers.

Firestone Mapping Reference:

Schema FieldMaps To...Example
kindURL Path (Collection)kind: users -> /users
CLI Command Groupmy-cli users ...
Code Class Nameclass UsersApi
properties (keys)JSON Fields{"first_name": "..."}
CLI Options--first-name
Code Variablesuser.first_name

Recommended Style:

  • Resources (kind): Plural nouns, kebab-case (e.g., user-profiles).
  • Properties: snake_case (e.g., created_at). This is standard for JSON and Python.

For comprehensive naming guidelines, refer to:

Consistently applied naming conventions make your generated tools intuitive and predictable.