go-swagger: github.com/go-swagger/go-swagger/fixtures/goparsing/classification/transitive/mods Index | Files

package mods

import "github.com/go-swagger/go-swagger/fixtures/goparsing/classification/transitive/mods"

Index

Package Files

aliases.go category.go interfaces.go notselected.go pet.go

type Category Uses

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 Uses

type EmbeddedColor interface {
    // swagger:name colorName
    ColorName() string
}

EmbeddedColor is a color

swagger:model color

type ExtraInfo Uses

type ExtraInfo interface {
    // swagger:name extraInfo
    ExtraInfo() string
}

ExtraInfo is an interface for things that have extra info swagger:model extra

type NotSelected Uses

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 Uses

type Notable struct {
    Notes string `json:"notes"`

    Extra string `json:"extra"`
}

Notable is a model in a transitive package. it's used for embedding in another model

swagger:model withNotes

type Pet Uses

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 explicitly mentioned in the import paths, but because it it transitively required by the order it should also be collected.

swagger:model pet

type SomeIntType Uses

type SomeIntType int64

SomeIntType is a type that refines int64 swagger:model modsSomeIntType

type SomeIntsType Uses

type SomeIntsType []int64

SomeIntsType is a type that refines []int64 swagger:model modsSomeIntsType

type SomePettedType Uses

type SomePettedType Pet

SomePettedType is a type that refines Pet swagger:model modsSomePettedType

type SomePettedsPtrType Uses

type SomePettedsPtrType []*Pet

SomePettedsPtrType is a type that refines array of mods.Pet pointers swagger:model modsSomePettedsPtrType

type SomePettedsType Uses

type SomePettedsType []Pet

SomePettedsType is a type that refines mods.Pet swagger:model modsSomePettedsType

type SomeStringType Uses

type SomeStringType string

SomeStringType is a type that refines string swagger:model modsSomeStringType

type SomeStringsType Uses

type SomeStringsType []string

SomeStringsType is a type that refines []string swagger:model modsSomeStringsType

type SomeTimeType Uses

type SomeTimeType time.Time

SomeTimeType is a type that refines time.Time swagger:strfmt date-time swagger:model modsSomeTimeType

type SomeTimedType Uses

type SomeTimedType strfmt.DateTime

SomeTimedType is a type that refines strfmt.DateTime swagger:model modsSomeTimedType

type SomeTimedsType Uses

type SomeTimedsType []strfmt.DateTime

SomeTimedsType is a type that refines strfmt.DateTime swagger:model modsSomeTimedsType

type SomeTimesType Uses

type SomeTimesType []time.Time

SomeTimesType is a type that refines time.Time swagger:strfmt date-time swagger:model modsSomeTimesType

Package mods imports 2 packages (graph) and is imported by 18 packages. Updated 2018-07-06. Refresh now. Tools for package owners.