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
8 changes: 8 additions & 0 deletions internal/test/parameters/shared_anyof/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# yaml-language-server: $schema=../../../../configuration-schema.json
# From issue-2090
package: sharedanyof
generate:
echo-server: true
client: true
models: true
output: shared_anyof.gen.go
8 changes: 8 additions & 0 deletions internal/test/parameters/shared_anyof/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Package sharedanyof is a regression test for issue-2090: a path-level anyOf
// parameter shared by multiple methods on a path (and on webhooks/callbacks)
// must have its union member types declared once for the path item, not once
// per method. The committed generated file compiling as part of the test
// module is the guard.
package sharedanyof

//go:generate go run github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen --config=config.yaml spec.yaml
Loading