Infer a normalized generation model from OpenAPI and apply bundled or project-owned Jinja template packs.
python -m pip install codepotgOn this page
Template variable reference
CodepotG exposes normalized, stable template variables grouped by domain. This section splits the complete surface into focused references so template authors do not need one unmanageable page.
Global values
Reference groups
- Schemas and fields
- Operations and HTTP values
- Entities, relations, access, and runtime
- Frontends, language helpers, and output
Root API information
api.info exposes:
Servers
Each api.servers item exposes:
Security
api.security preserves ordered API-level requirements. Security schemes remain available through api.security_schemes.
Operation security overrides remain distinct from API defaults.
Resources
Collection views:
Each resource exposes:
Names
Objects with generated identifiers expose a naming object rather than requiring every template to repeat casing logic. Depending on the adapter, common name forms include:
Use the adapter's documented name property or filter. Avoid assuming that a plain name string already has target-language casing.
Information notes
Any resource, schema, operation, entity, frontend, component, screen, hook, or policy can expose:
Unknown note categories remain ordered under other.
Documentation fields
Major objects expose docs, normally including:
Lossless compatibility
All major normalized objects expose:
Known values use named properties. Unknown x-* values use extensions. Original source objects remain under raw.
Variable availability
Not every variable exists in every emission. A graph template receives globals, its selection alias, file/emission information, and declared provider outputs. Check for optional values where the OpenAPI source or selected domain does not require them.