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
9 changes: 6 additions & 3 deletions internal/test/schemas/recursive/doc.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
// Package schemasrecursive exercises recursive and cyclic schema patterns:
// self-referencing types via additionalProperties (issue #52), cyclic oneOf
// references (issue #936, requires circular-reference-limit), and recursive
// $ref inside allOf (issue #1373). All cases are models-only; the point is
// that code generation and compilation succeed without infinite loops.
// references (issue #936, requires circular-reference-limit), recursive $ref
// inside allOf (issue #1373), and allOf compositions whose members refer back
// into a body still being generated (issue #2542, in its object, union,
// transitive, mutual and bystander forms). All cases are models-only; the
// point is that code generation and compilation succeed without infinite
// loops, and that a recursive composition keeps both halves of the allOf.
package schemasrecursive

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