Documentation
¶
Overview ¶
Package named_basic exercises the schemaBuilder.buildNamedBasic branches for named basic types carrying swagger:strfmt, swagger:type and the deprecated swagger:default annotation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Colour ¶
type Colour int
Colour is a named int whose representation is overridden via swagger:type so the scanner emits it as a string instead of an integer.
swagger:type string
type Email ¶
type Email string
Email is a named string with a swagger:strfmt tag. The scanner must emit {"type": "string", "format": "email"} via the strfmt branch.
swagger:strfmt email
type Grade ¶
type Grade int
Grade is a named int tagged with the DEPRECATED swagger:default annotation. The annotation is an inert sink: Grade must emit exactly what it would without it — a plain named int, referenced by $ref from the field site — and the scan must raise a deprecation diagnostic.
It used to claim the target without writing it, publishing a typeless schema for the declared type and a typeless property for every field referencing it.
swagger:default Grade