bug2638

package
v0.36.3 Latest Latest
Warning

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

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

Documentation

Overview

Package bug2638 reproduces go-swagger issue #2638 ("Improper handling of multiple variables on one line"): a struct field group declaring several names on one line (`R, G, B, A uint8`) must emit one property per name, instead of a single mislabeled property.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mixed

type Mixed struct {
	X, Y, Z float64 `json:"renamed,omitempty"`
	Label   string
}

Mixed exercises a multi-name group alongside single-name fields, and a multi-name group that carries json options: the `,omitempty` applies to every member while the rename is dropped (a single rename can't name N members).

swagger:model Mixed

type RGBA

type RGBA struct {
	R, G, B, A uint8
}

RGBA mirrors the upstream color.RGBA shape from the issue: four names share one field group.

swagger:model RGBA

Jump to

Keyboard shortcuts

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