Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Spec ¶
type Spec struct {
Format string `` //nolint:staticcheck // false positive detecting duplicate tags (it works fine on other files with the same pattern)
/* 197-byte string literal not displayed */
Title string `description:"the title of the API" long:"title"`
Description string `description:"the description of the API" long:"description"`
Version string `` /* 135-byte string literal not displayed */
Terms string `description:"the terms of services" long:"terms"`
Consumes []string `` /* 136-byte string literal not displayed */
Produces []string `` /* 136-byte string literal not displayed */
Schemes []string `` /* 134-byte string literal not displayed */
Contact struct {
Name string `description:"name of the primary contact for the API" long:"contact.name"`
URL string `description:"url of the primary contact for the API" long:"contact.url"`
Email string `description:"email of the primary contact for the API" long:"contact.email"`
}
License struct {
Name string `description:"name of the license for the API" long:"license.name"`
URL string `description:"url of the license for the API" long:"license.url"`
}
}
Spec represents a command for initializing a new swagger application.
Click to show internal directories.
Click to hide internal directories.