Skip to content

spec.server

Runtime HTTP server configuration. The only required field is port; the rest tune transport and auth.

yaml
spec:
  server:
    port: 8080
    scheme: https
    debug: false
    auth:
      enabled: true

Fields

FieldTypeRequiredConstraintDescription
portinteger1 ≤ port ≤ 65535TCP port the server binds to.
schemestring-URL scheme (http, https). Influences emitted URLs in code.
debugboolean-Enable verbose debug logging in generated code.
authobjectsee AuthAuthentication block.

spec.server.auth

yaml
spec:
  server:
    auth:
      enabled: true
FieldTypeRequiredDescription
enabledbooleanIf true, the generator wires authentication into the server pipeline; if false or omitted, the server is open.

The schema deliberately keeps auth minimal in v1: it carries the intent (auth on / off), and the concrete mechanism (JWT, OIDC, mTLS, etc.) is the generator's territory. Future minor versions may extend this block with typed sub-configs as patterns stabilise across consumers.