Documentation ¶
Index ¶
- Constants
- Variables
- type Categories
- func (cats *Categories) Category(title string) (Category, error)
- func (cats *Categories) MapSlice() mapslice.MapSlice
- func (cats *Categories) MarshalJSON(prefix, indent string) ([]byte, error)
- func (cats *Categories) MarshalYAML() ([]byte, error)
- func (cats *Categories) SpecAddXTaxonomy(spec *openapi3.Spec, catTitle, catsFilepath string) error
- func (cats *Categories) WriteFileJSON(filename string, perm os.FileMode, prefix, indent string) error
- func (cats *Categories) WriteFileYAML(filename string, perm os.FileMode) error
- type Category
- type CategoryRef
- type Taxonomy
Constants ¶
View Source
const XTaxonomy = "x-taxonomy"
Variables ¶
View Source
var ErrCategoryNotFound = errors.New("category not found")
Functions ¶
This section is empty.
Types ¶
type Categories ¶
type Categories []Category
func (*Categories) MapSlice ¶
func (cats *Categories) MapSlice() mapslice.MapSlice
func (*Categories) MarshalJSON ¶
func (cats *Categories) MarshalJSON(prefix, indent string) ([]byte, error)
func (*Categories) MarshalYAML ¶
func (cats *Categories) MarshalYAML() ([]byte, error)
func (*Categories) SpecAddXTaxonomy ¶
func (cats *Categories) SpecAddXTaxonomy(spec *openapi3.Spec, catTitle, catsFilepath string) error
SpecAddXTaxonomy expects `catTitle` to be the same as the OAS3 `tag` name.
func (*Categories) WriteFileJSON ¶
func (*Categories) WriteFileYAML ¶
func (cats *Categories) WriteFileYAML(filename string, perm os.FileMode) error
type Category ¶
type CategoryRef ¶
type CategoryRef struct {
Ref string `json:"$ref"`
}
Click to show internal directories.
Click to hide internal directories.