-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathoapi-codegen.yaml
More file actions
25 lines (25 loc) · 986 Bytes
/
oapi-codegen.yaml
File metadata and controls
25 lines (25 loc) · 986 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# yaml-language-server: $schema=https://raw.githubusercontent.com/oapi-codegen/oapi-codegen/HEAD/configuration-schema.json
#
# oapi-codegen configuration for Basecamp SDK
# Generates Go client code from OpenAPI spec with Basecamp-specific extensions
#
package: generated
output: pkg/generated/client.gen.go
generate:
client: true
models: true
embedded-spec: false
output-options:
# Use custom templates that read x-basecamp-* extensions
user-templates:
client.tmpl: templates/client.tmpl
typedef.tmpl: templates/typedef.tmpl
imports.tmpl: templates/imports.tmpl
# Skip formatting - we'll run gofmt separately
skip-fmt: false
# Skip pruning unused types
skip-prune: false
# Generate value types instead of pointers for optional fields
# This makes the API more ergonomic (e.g., project.Id instead of *project.Id)
# Fields that need to distinguish nil from zero value can use x-go-type-skip-optional-pointer: false
prefer-skip-optional-pointer: true