Skip to main content

Config

ogen could be configurated via .ogen.yml file:

.ogen.yml
# sets generator options.
generator:
# sets generator features.
features:
enable:
# Enables paths client generation
- "paths/client"
# Enables paths server generation
- "paths/server"
# Enables validation of client requests
- "client/request/validation"
# Enables validation of server responses
- "server/response/validation"
# Enables OpenTelemetry integration
- "ogen/otel"
disable_all: true

See full config example here.

Features

ogen provides a opt-in/opt-out mechanism for some features like OpenTelemetry integration.

You can find a complete feature list in ogen repository.