-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create a test to check client throttling and update the ogen version
- Loading branch information
1 parent
55f0bc5
commit 64298eb
Showing
13 changed files
with
1,876 additions
and
507 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,27 @@ | ||
# sets parser options. | ||
parser: | ||
# enables type inference for schemas. Schema parser will try to detect schema type by its properties. | ||
infer_types: true | ||
# enables remote references resolving. See https://github.com/ogen-go/ogen/issues/385. | ||
allow_remote: true | ||
# is maximum depth of schema generation. Default is 1000. | ||
depth_limit: 1000 | ||
|
||
# sets generator options. | ||
generator: | ||
# sets generator features. | ||
features: | ||
enable: | ||
# Enables paths client generation | ||
- 'paths/client' | ||
# Enables client usage in security source implementations | ||
- 'client/security/reentrant' | ||
# Enables validation of client requests | ||
- 'client/request/validation' | ||
# Enables validation of server responses | ||
- 'server/response/validation' | ||
# Enables stub Handler generation | ||
- 'ogen/unimplemented' | ||
disable: | ||
# Disables paths server generation | ||
- 'paths/server' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
package tonapi | ||
|
||
//go:generate go run github.com/ogen-go/ogen/cmd/ogen -convenient-errors -clean -no-server -package tonapi -target . api/openapi.yml | ||
//go:generate go run github.com/ogen-go/ogen/cmd/ogen -clean -package tonapi -target . api/openapi.yml |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.