This repository defines the preferred naming conventions for Openapi across documentation, source code, environment variables, package names, and integrations.
- Official name
- Why this repository exists
- Naming conventions
- Quick reference
- Forms to avoid
- Rule of thumb
The preferred display name is:
Openapi
The name is written in one way only:
| Form | |
|---|---|
| ✅ | Openapi |
| ❌ | OpenAPI |
| ❌ | OpenApi |
| ❌ | openAPI |
| ❌ | OPENAPI |
This guide explains which form to use in each technical context.
| Form | Example | |
|---|---|---|
| ✅ | Openapi |
Openapi organization, Openapi SDK |
| ❌ | OpenAPI |
|
| ❌ | openAPI |
|
| ❌ | OPENAPI |
Use lowercase when required by platform conventions:
openapiopenapi/openapi-naming
Use uppercase snake case:
OPENAPI_API_KEYOPENAPI_BASE_URL
Standard variables used across Openapi projects:
OAuth credentials (token management):
| Variable | Description |
|---|---|
OPENAPI_USERNAME |
Account username (email) |
OPENAPI_KEY |
API key |
OPENAPI_SANDBOX_KEY |
Sandbox API key |
Bearer tokens (service API commands):
| Variable | Description |
|---|---|
OPENAPI_TOKEN |
Bearer token for production |
OPENAPI_SANDBOX_TOKEN |
Bearer token for sandbox |
Use lowercase where ecosystem conventions require it:
openapi-clientopenapi-sdkopenapi-php
Use uppercase snake case:
OPENAPI_DEFAULT_TIMEOUTOPENAPI_API_VERSION
Classes: PascalCase prefixed with Openapi
OpenapiClientOpenapiConfigOpenapiExceptionOpenapiServiceProvider
Namespaces: PascalCase segments
Openapi\ClientOpenapi\SupportOpenapi\Http\RequestBuilder
Variables: camelCase
$openapiClient$openapiConfig$openapiApiKey
Functions: camelCase
createOpenapiClient()
Avoid: OpenAPIClient, OpenApiClient, $OpenapiClient, $openAPIClient
Classes: PascalCase prefixed with Openapi
OpenapiClientOpenapiConfig
Variables: camelCase
openapiClientopenapiConfig
Functions: camelCase
createOpenapiClient()
Classes: PascalCase prefixed with Openapi
OpenapiClientOpenapiConfig
Modules: snake_case
openapi_clientopenapi_config
Variables and functions: snake_case
openapi_clientopenapi_configcreate_openapi_client()
Types and exported identifiers: PascalCase prefixed with Openapi
OpenapiClientOpenapiConfig
Packages: lowercase
openapi
Variables: camelCase
openapiClientopenapiConfig
Functions: PascalCase if exported, camelCase if unexported
NewOpenapiClient()newOpenapiClient()
Structs and enums: PascalCase prefixed with Openapi
OpenapiClientOpenapiConfig
Modules and crates: snake_case
openapi_clientopenapi_config
Variables and functions: snake_case
openapi_clientopenapi_configcreate_openapi_client()
| Context | Preferred form | Example |
|---|---|---|
| Brand / display name | Openapi |
Openapi SDK |
| GitHub org / repo | openapi |
openapi/openapi-naming |
| Environment variables | OPENAPI_* |
OPENAPI_API_KEY |
| Constants | OPENAPI_* |
OPENAPI_DEFAULT_TIMEOUT |
| PHP / JS / Go classes | Openapi* |
OpenapiClient |
| PHP / Go variables | $openapiClient |
camelCase |
| Python / Rust variables | openapi_client |
snake_case |
| Package names | openapi-* |
openapi-sdk |
Unless a platform or technical convention requires otherwise, avoid:
OpenAPIopenAPIOPENAPI
- Use Openapi for human-facing text
- Use openapi where lowercase identifiers are standard
- Use OPENAPI where uppercase constants or environment variables are standard
This repository is the canonical reference for how the name Openapi should be written across contexts.