bug2701

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 bug2701 reproduces go-swagger issue #2701 ("In path parameter for an embedded struct is ignored and thus defaults to query"): an `in: path` annotation on an EMBEDDED struct field in a swagger:parameters type is ignored — the promoted fields default to `in: query`.

The fixture also guards the exportedness contract: only EXPORTED fields are promoted (the product documents the public API surface), including exported fields reached recursively through an unexported embedded type (Go promotes them — outer.Trace is accessible). Unexported fields, at any depth, must never surface as parameters.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type URCapID

type URCapID struct {
	Vendor  string `json:"vendorID"`
	ID      string `json:"urcapID"`
	Version string `json:"version"`
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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