bug3213

package
v0.36.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package bug3213 reproduces go-swagger issue #3213 ("Consider TypeSpec comments"): annotations and doc comments attached to an individual TypeSpec inside a grouped `type ( ... )` declaration — rather than to the enclosing GenDecl — must still be parsed. Two models share one type group with distinct per-spec docs (a GenDecl-only reader could not tell them apart), and a grouped enum is referenced by a third model.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alpha

type Alpha struct {
	Name string `json:"name"`
}

Alpha is the first grouped model.

swagger:model Alpha

type Beta

type Beta struct {
	// The current status.
	Status Status `json:"status"`
}

Beta is the second grouped model, sharing Alpha's type group.

swagger:model Beta

type Status

type Status string

Status is an enum declared inside a type group.

swagger:enum Status

const (
	StatusOn  Status = "on"
	StatusOff Status = "off"
)

Jump to

Keyboard shortcuts

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