3412/

directory
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

Directories

Path Synopsis
Package constforms exercises the const shapes a `swagger:enum` member can take beyond a plain literal — the shapes that are invisible to a reader working on literal syntax alone, and which the go-swagger#3412 investigation surfaced one after the other:
Package constforms exercises the const shapes a `swagger:enum` member can take beyond a plain literal — the shapes that are invisible to a reader working on literal syntax alone, and which the go-swagger#3412 investigation surfaced one after the other:
foreign
Package foreign declares a type sharing its name with an enum type of the parent package, so the membership test cannot be name-only.
Package foreign declares a type sharing its name with an enum type of the parent package, so the membership test cannot be name-only.
Package negative reproduces go-swagger issue #3412 ("negative enum values are dropped"): a signed constant such as `PanLeft PanDirection = -1` is not a literal in the Go grammar — it reaches the AST as a unary expression wrapping the literal — so the enum member was silently skipped and only the non-negative values survived.
Package negative reproduces go-swagger issue #3412 ("negative enum values are dropped"): a signed constant such as `PanLeft PanDirection = -1` is not a literal in the Go grammar — it reaches the AST as a unary expression wrapping the literal — so the enum member was silently skipped and only the non-negative values survived.
Package simpleschema pins the propagation surface of `swagger:enum`: every place an enum type can be consumed must carry the members AND the type/format of the declared Go type.
Package simpleschema pins the propagation surface of `swagger:enum`: every place an enum type can be consumed must carry the members AND the type/format of the declared Go type.
Package strfmtenum covers an enum whose declared type is written OVER another named type rather than directly over a basic one.
Package strfmtenum covers an enum whose declared type is written OVER another named type rather than directly over a basic one.

Jump to

Keyboard shortcuts

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