-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathapi-codegen.yml
More file actions
22 lines (22 loc) · 861 Bytes
/
Copy pathapi-codegen.yml
File metadata and controls
22 lines (22 loc) · 861 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# oapi-codegen configuration for the daemon API. Run through `go generate ./...`.
package: daemon
output: daemon/api_gen.go
generate:
models: true
std-http-server: true
compatibility:
# The generated models share the daemon package, so the schema names carry an
# Api prefix via x-go-name in the spec. Prefixing enum constants with their
# type name keeps "unknown" and "" out of the package scope as bare Unknown
# and Empty.
always-prefix-enum-values: true
output-options:
# /web-api/{path} is a catch-all proxy: the path continues for any number of
# segments, which an OpenAPI path template cannot express and the generated
# router would therefore mis-route. It stays documented in the spec but its
# route is registered by hand in serve().
exclude-operation-ids:
- webApiGet
- webApiPost
- webApiPut
- webApiDelete