api-generate

command
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

README

API generator

Generation tooling for api/v1 belongs here. Generated output derives only from openapi/powercontext.yaml.

The frozen OpenAPI 3.0 document uses $ref with a nullable: true sibling. OpenAPI 3.0 formally ignores $ref siblings, so the generator command creates an ephemeral, semantically equivalent oneOf: [$ref, null] view before invoking ogen. The canonical document is neither rewritten nor checked in twice.

The command also generates the PowerContext semantic validator for cross-field Candidate evidence limits. Its model list is discovered from the canonical schema using the same rule as the frozen Python generator, so this exception to plain OpenAPI validation remains deterministic and reviewable.

Documentation

Overview

Command api-generate generates the Go HTTP contract from the frozen OpenAPI document without modifying that authoritative file.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL