-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #234 from ogen-go/docs/update
docs: add `Config` page
- Loading branch information
Showing
4 changed files
with
196 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
id: config | ||
title: Config | ||
sidebar_label: Config | ||
sidebar_position: 7 | ||
--- | ||
|
||
ogen could be configurated via `.ogen.yml` file: | ||
|
||
```yaml [title=".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](https://github.com/ogen-go/ogen/blob/main/examples/_config/example_all.yml). | ||
### Features | ||
ogen provides a opt-in/opt-out mechanism for some features like OpenTelemetry integration. | ||
You can find a [complete feature list](https://github.com/ogen-go/ogen/blob/main/gen/features.go) in ogen repository. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters