Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions internal/test/clients/responseheaders/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# yaml-language-server: $schema=../../../../configuration-schema.json
# From issue-2011
package: responseheaders
output: headers.gen.go
generate:
models: true
client: true
output-options:
# Exercises the nullable.Nullable[T] header-binding path (IsNullable).
nullable-type: true
11 changes: 11 additions & 0 deletions internal/test/clients/responseheaders/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Package responseheaders verifies that response headers declared in the
// spec are parsed into typed Headers<StatusCode> fields on the generated
// client response wrappers. The header structs are client-local types named
// after the response wrapper (e.g. GetFooResponse200Headers), emitted and
// consumed entirely within the client output; specs without response
// headers generate no additional code.
//
// From issue-2011.
package responseheaders

//go:generate go run github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen --config=config.yaml spec.yaml
355 changes: 355 additions & 0 deletions internal/test/clients/responseheaders/headers.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading