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 ¶
Click to show internal directories.
Click to hide internal directories.