bug2483

package
v0.36.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pet

type Pet struct {
	// swagger:allOf
	SimpleOne

	Something

	Notes string `json:"notes"`

	Extra string `json:"extra"`
}

Pet embeds SimpleOne as an allOf base and Something inline. The reporter saw the allOf arms duplicated (SimpleOne $ref + the inline object each appearing twice), which also tripped a "circular ancestry" validation error.

swagger:model Pet

type SimpleOne

type SimpleOne struct {
	ID   int64  `json:"id"`
	Name string `json:"name"`
	Age  int32  `json:"age"`
}

SimpleOne is a model with a few simple fields.

swagger:model SimpleOne

type Something

type Something struct {
	DID int64  `json:"did"`
	Cat string `json:"cat"`
}

Something is used by other structs (not itself annotated).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL