On this page

NameContext

NameContext is the shared renderer-facing shape for a semantic name.

It is for semantic identity and naming variants, not for generated symbols. A template that needs the actual declaration emitted by the current file should use file.symbol or file.symbols.<key> from ../metadata/file.md.

Fields

PathTypeMeaning
name.rawstringOriginal semantic name before derived casing variants; never the subject id.
name.localstringUnqualified semantic name.
name.qualifiedstringHuman-readable qualified identity, never JSON-pointer syntax.
name.camelstringcamelCase local name.
name.pascalstringPascalCase local name.
name.snakestringsnake_case local name.
name.kebabstringkebab-case local name.
name.constantstringCONSTANT_CASE local name.
name.titlestringHuman display title.

Only requested variants are calculated.

Use

Use semantic names for semantic intent:

jinja
{{ schema.name.pascal }}
{{ field.name.camel }}
{{ operation.name.kebab }}

Use file metadata for generated declarations:

jinja
{{ file.symbol }}
{{ file.symbols.model }}

Do not reconstruct generated symbols from semantic names when file.symbol or file.symbols is available. Planning owns generated symbol identity.

Search in