Documentation ¶
Index ¶
- type Category
- type EmbeddedColor
- type ExtraInfo
- type NotSelected
- type Notable
- type Pet
- type SomeIntType
- type SomeIntsType
- type SomePettedType
- type SomePettedsPtrType
- type SomePettedsType
- type SomeStringType
- type SomeStringsType
- type SomeTimeType
- type SomeTimedType
- type SomeTimedsType
- type SomeTimesType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Category ¶
type Category struct { // ID the id of the category // // required: true // min: 1 ID int64 `json:"id"` // Name the name of the category // // required: true Name string `json:"name"` }
Category represents a category for a pet categories are things like: cat, dog, fish
Even though this model is not annotated with anything, and it's not included in the initial imports it should still register because it's a required file for the pet model
type EmbeddedColor ¶
type EmbeddedColor interface { // swagger:name colorName ColorName() string }
EmbeddedColor is a color
swagger:model color
type ExtraInfo ¶
type ExtraInfo interface { // swagger:name extraInfo ExtraInfo() string }
ExtraInfo is an interface for things that have extra info swagger:model extra
type NotSelected ¶
type NotSelected struct { // ID the id of this not selected model ID int64 `json:"id"` // Name the name of this not selected model Name string `json:"name"` }
NotSelected is a model that is in a transitive package
This model is not annotated and should not be detected for parsing.
type Notable ¶
Notable is a model in a transitive package. it's used for embedding in another model
swagger:model withNotes
type Pet ¶
type Pet struct { // ID the id of this pet // // required: true ID int64 `json:"id"` // Name the name of the pet // this is more like the breed or race of the pet // // required: true // min length: 3 Name string `json:"name"` // Category the category this pet belongs to. // // required: true Category *Category `json:"category"` }
Pet represents a pet in our store
this model is not explictly mentioned in the import paths but because it it transitively required by the order it should also be collected.
swagger:model pet
type SomeIntType ¶
type SomeIntType int64
SomeIntType is a type that refines int64 swagger:model modsSomeIntType
type SomeIntsType ¶
type SomeIntsType []int64
SomeIntsType is a type that refines []int64 swagger:model modsSomeIntsType
type SomePettedType ¶
type SomePettedType Pet
SomePettedType is a type that refines Pet swagger:model modsSomePettedType
type SomePettedsPtrType ¶
type SomePettedsPtrType []*Pet
SomePettedsPtrType is a type that refines array of mods.Pet pointers swagger:model modsSomePettedsPtrType
type SomePettedsType ¶
type SomePettedsType []Pet
SomePettedsType is a type that refines mods.Pet swagger:model modsSomePettedsType
type SomeStringType ¶
type SomeStringType string
SomeStringType is a type that refines string swagger:model modsSomeStringType
type SomeStringsType ¶
type SomeStringsType []string
SomeStringsType is a type that refines []string swagger:model modsSomeStringsType
type SomeTimeType ¶
SomeTimeType is a type that refines time.Time swagger:strfmt date-time swagger:model modsSomeTimeType
type SomeTimedType ¶
SomeTimedType is a type that refines strfmt.DateTime swagger:model modsSomeTimedType
type SomeTimedsType ¶
SomeTimedsType is a type that refines strfmt.DateTime swagger:model modsSomeTimedsType
type SomeTimesType ¶
SomeTimesType is a type that refines time.Time swagger:strfmt date-time swagger:model modsSomeTimesType