aliasdeprecated

package
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 Imports: 0 Imported by: 0

Documentation

Overview

Package aliasdeprecated is the F8 witness (doc-site-quirks.md): swagger:alias is deprecated. It once force-inlined a named primitive ({type:string}) instead of the $ref a named type otherwise gets; that behaviour is removed. The annotation is now an empty sink that only emits a deprecation diagnostic; the type follows default handling.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	// Contact is an Email; it now resolves to a $ref, not an inlined string.
	Contact Email `json:"contact"`
}

Account references the deprecated-alias type.

swagger:model Account

type Email

type Email string

Email is a string refinement type carrying the deprecated swagger:alias annotation alongside swagger:model.

swagger:alias swagger:model Email

Jump to

Keyboard shortcuts

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