Blame vendor/github.com/getkin/kin-openapi/openapi3/tag.go

Packit Service 3a6627
package openapi3
Packit Service 3a6627
Packit Service 3a6627
// Tags is specified by OpenAPI/Swagger 3.0 standard.
Packit Service 3a6627
type Tags []*Tag
Packit Service 3a6627
Packit Service 3a6627
func (tags Tags) Get(name string) *Tag {
Packit Service 3a6627
	for _, tag := range tags {
Packit Service 3a6627
		if tag.Name == name {
Packit Service 3a6627
			return tag
Packit Service 3a6627
		}
Packit Service 3a6627
	}
Packit Service 3a6627
	return nil
Packit Service 3a6627
}
Packit Service 3a6627
Packit Service 3a6627
// Tag is specified by OpenAPI/Swagger 3.0 standard.
Packit Service 3a6627
type Tag struct {
Packit Service 3a6627
	Name         string        `json:"name,omitempty" yaml:"name,omitempty"`
Packit Service 3a6627
	Description  string        `json:"description,omitempty" yaml:"description,omitempty"`
Packit Service 3a6627
	ExternalDocs *ExternalDocs `json:"externalDocs,omitempty" yaml:"externalDocs,omitempty"`
Packit Service 3a6627
}