Documentation
¶
Index ¶
- func Register(c Comment)
- type Comment
- type ExternalDocsDescriptionComment
- type ExternalDocsURLComment
- type InfoContactEmailComment
- type InfoContactNameComment
- type InfoContactURLComment
- type InfoDescriptionComment
- type InfoLicenseIdentifierComment
- type InfoLicenseNameComment
- type InfoLicenseURLComment
- type InfoSummaryComment
- type InfoTermsOfServiceComment
- type InfoTitleComment
- type InfoVersionComment
- type MockComment
- type MockComment_Expecter
- type MockComment_ParseInto_Call
- func (_c *MockComment_ParseInto_Call) Return(err error) *MockComment_ParseInto_Call
- func (_c *MockComment_ParseInto_Call) Run(run func(c string, s *openapi.Extendable[openapi.OpenAPI])) *MockComment_ParseInto_Call
- func (_c *MockComment_ParseInto_Call) RunAndReturn(run func(c string, s *openapi.Extendable[openapi.OpenAPI]) error) *MockComment_ParseInto_Call
- type MockComment_Tag_Call
- type MockComment_Usage_Call
- type MockRegistry
- type MockRegistry_Comments_Call
- type MockRegistry_Expecter
- type MockRegistry_Parse_Call
- func (_c *MockRegistry_Parse_Call) Return(err error) *MockRegistry_Parse_Call
- func (_c *MockRegistry_Parse_Call) Run(run func(line string, spec *openapi.Extendable[openapi.OpenAPI])) *MockRegistry_Parse_Call
- func (_c *MockRegistry_Parse_Call) RunAndReturn(run func(line string, spec *openapi.Extendable[openapi.OpenAPI]) error) *MockRegistry_Parse_Call
- type MockRegistry_Register_Call
- type Registry
- type SecurityComment
- type SecuritySchemeBearerFormatComment
- type SecuritySchemeComment
- type SecuritySchemeInComment
- type SecuritySchemeNameComment
- type SecuritySchemeSchemeComment
- type ServerDescriptionComment
- type ServerURLComment
- type ServerVariableDefaultComment
- type ServerVariableDescriptionComment
- type ServerVariableEnumComment
- type TagDescriptionComment
- type TagExternalDocsDescriptionComment
- type TagExternalDocsURLComment
- type TagNameComment
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ExternalDocsDescriptionComment ¶
type ExternalDocsDescriptionComment struct{}
func (*ExternalDocsDescriptionComment) ParseInto ¶
func (c *ExternalDocsDescriptionComment) ParseInto(line string, s *openapi.Extendable[openapi.OpenAPI]) error
ParseInto implements Comment.
func (*ExternalDocsDescriptionComment) Tag ¶
func (c *ExternalDocsDescriptionComment) Tag() string
Tag implements Comment.
func (*ExternalDocsDescriptionComment) Usage ¶
func (c *ExternalDocsDescriptionComment) Usage() string
Usage implements Comment.
type ExternalDocsURLComment ¶
type ExternalDocsURLComment struct{}
func (*ExternalDocsURLComment) ParseInto ¶
func (c *ExternalDocsURLComment) ParseInto(line string, s *openapi.Extendable[openapi.OpenAPI]) error
ParseInto implements Comment.
func (*ExternalDocsURLComment) Tag ¶
func (c *ExternalDocsURLComment) Tag() string
Tag implements Comment.
func (*ExternalDocsURLComment) Usage ¶
func (c *ExternalDocsURLComment) Usage() string
Usage implements Comment.
type InfoContactEmailComment ¶
type InfoContactEmailComment struct{}
func (*InfoContactEmailComment) ParseInto ¶
func (c *InfoContactEmailComment) ParseInto(line string, s *openapi.Extendable[openapi.OpenAPI]) error
ParseInto implements Comment.
func (*InfoContactEmailComment) Tag ¶
func (c *InfoContactEmailComment) Tag() string
Tag implements Comment.
func (*InfoContactEmailComment) Usage ¶
func (c *InfoContactEmailComment) Usage() string
Usage implements Comment.
type InfoContactNameComment ¶
type InfoContactNameComment struct{}
func (*InfoContactNameComment) ParseInto ¶
func (c *InfoContactNameComment) ParseInto(line string, s *openapi.Extendable[openapi.OpenAPI]) error
ParseInto implements Comment.
func (*InfoContactNameComment) Tag ¶
func (c *InfoContactNameComment) Tag() string
Tag implements Comment.
func (*InfoContactNameComment) Usage ¶
func (c *InfoContactNameComment) Usage() string
Usage implements Comment.
type InfoContactURLComment ¶
type InfoContactURLComment struct{}
func (*InfoContactURLComment) ParseInto ¶
func (c *InfoContactURLComment) ParseInto(line string, s *openapi.Extendable[openapi.OpenAPI]) error
ParseInto implements Comment.
func (*InfoContactURLComment) Tag ¶
func (c *InfoContactURLComment) Tag() string
Tag implements Comment.
func (*InfoContactURLComment) Usage ¶
func (c *InfoContactURLComment) Usage() string
Usage implements Comment.
type InfoDescriptionComment ¶
type InfoDescriptionComment struct{}
func (*InfoDescriptionComment) ParseInto ¶
func (c *InfoDescriptionComment) ParseInto(line string, s *openapi.Extendable[openapi.OpenAPI]) error
ParseInto implements Comment.
func (*InfoDescriptionComment) Tag ¶
func (c *InfoDescriptionComment) Tag() string
Tag implements Comment.
func (*InfoDescriptionComment) Usage ¶
func (c *InfoDescriptionComment) Usage() string
Usage implements Comment.
type InfoLicenseIdentifierComment ¶
type InfoLicenseIdentifierComment struct{}
func (*InfoLicenseIdentifierComment) ParseInto ¶
func (c *InfoLicenseIdentifierComment) ParseInto(line string, s *openapi.Extendable[openapi.OpenAPI]) error
ParseInto implements Comment.
func (*InfoLicenseIdentifierComment) Tag ¶
func (c *InfoLicenseIdentifierComment) Tag() string
Tag implements Comment.
func (*InfoLicenseIdentifierComment) Usage ¶
func (c *InfoLicenseIdentifierComment) Usage() string
Usage implements Comment.
type InfoLicenseNameComment ¶
type InfoLicenseNameComment struct{}
func (*InfoLicenseNameComment) ParseInto ¶
func (c *InfoLicenseNameComment) ParseInto(line string, s *openapi.Extendable[openapi.OpenAPI]) error
ParseInto implements Comment.
func (*InfoLicenseNameComment) Tag ¶
func (c *InfoLicenseNameComment) Tag() string
Tag implements Comment.
func (*InfoLicenseNameComment) Usage ¶
func (c *InfoLicenseNameComment) Usage() string
Usage implements Comment.
type InfoLicenseURLComment ¶
type InfoLicenseURLComment struct{}
func (*InfoLicenseURLComment) ParseInto ¶
func (c *InfoLicenseURLComment) ParseInto(line string, s *openapi.Extendable[openapi.OpenAPI]) error
ParseInto implements Comment.
func (*InfoLicenseURLComment) Tag ¶
func (c *InfoLicenseURLComment) Tag() string
Tag implements Comment.
func (*InfoLicenseURLComment) Usage ¶
func (c *InfoLicenseURLComment) Usage() string
Usage implements Comment.
type InfoSummaryComment ¶
type InfoSummaryComment struct{}
func (*InfoSummaryComment) ParseInto ¶
func (c *InfoSummaryComment) ParseInto(line string, s *openapi.Extendable[openapi.OpenAPI]) error
ParseInto implements Comment.
func (*InfoSummaryComment) Usage ¶
func (c *InfoSummaryComment) Usage() string
Usage implements Comment.
type InfoTermsOfServiceComment ¶
type InfoTermsOfServiceComment struct{}
func (*InfoTermsOfServiceComment) ParseInto ¶
func (c *InfoTermsOfServiceComment) ParseInto(line string, s *openapi.Extendable[openapi.OpenAPI]) error
ParseInto implements Comment.
func (*InfoTermsOfServiceComment) Tag ¶
func (c *InfoTermsOfServiceComment) Tag() string
Tag implements Comment.
func (*InfoTermsOfServiceComment) Usage ¶
func (c *InfoTermsOfServiceComment) Usage() string
Usage implements Comment.
type InfoTitleComment ¶
type InfoTitleComment struct{}
func (*InfoTitleComment) ParseInto ¶
func (c *InfoTitleComment) ParseInto(line string, s *openapi.Extendable[openapi.OpenAPI]) error
ParseInto implements Comment.
func (*InfoTitleComment) Tag ¶
func (c *InfoTitleComment) Tag() string
InfoTitleComment implements Comment.
func (*InfoTitleComment) Usage ¶
func (c *InfoTitleComment) Usage() string
Usage implements Comment.
type InfoVersionComment ¶
type InfoVersionComment struct{}
func (*InfoVersionComment) ParseInto ¶
func (c *InfoVersionComment) ParseInto(line string, s *openapi.Extendable[openapi.OpenAPI]) error
ParseInto implements Comment.
func (*InfoVersionComment) Usage ¶
func (c *InfoVersionComment) Usage() string
Usage implements Comment.
type MockComment ¶
MockComment is an autogenerated mock type for the Comment type
func NewMockComment ¶
func NewMockComment(t interface {
mock.TestingT
Cleanup(func())
}) *MockComment
NewMockComment creates a new instance of MockComment. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockComment) EXPECT ¶
func (_m *MockComment) EXPECT() *MockComment_Expecter
func (*MockComment) ParseInto ¶
func (_mock *MockComment) ParseInto(c string, s *openapi.Extendable[openapi.OpenAPI]) error
ParseInto provides a mock function for the type MockComment
func (*MockComment) Tag ¶
func (_mock *MockComment) Tag() string
Tag provides a mock function for the type MockComment
func (*MockComment) Usage ¶
func (_mock *MockComment) Usage() string
Usage provides a mock function for the type MockComment
type MockComment_Expecter ¶
type MockComment_Expecter struct {
// contains filtered or unexported fields
}
func (*MockComment_Expecter) ParseInto ¶
func (_e *MockComment_Expecter) ParseInto(c interface{}, s interface{}) *MockComment_ParseInto_Call
ParseInto is a helper method to define mock.On call
- c string
- s *openapi.Extendable[openapi.OpenAPI]
func (*MockComment_Expecter) Tag ¶
func (_e *MockComment_Expecter) Tag() *MockComment_Tag_Call
Tag is a helper method to define mock.On call
func (*MockComment_Expecter) Usage ¶
func (_e *MockComment_Expecter) Usage() *MockComment_Usage_Call
Usage is a helper method to define mock.On call
type MockComment_ParseInto_Call ¶
MockComment_ParseInto_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ParseInto'
func (*MockComment_ParseInto_Call) Return ¶
func (_c *MockComment_ParseInto_Call) Return(err error) *MockComment_ParseInto_Call
func (*MockComment_ParseInto_Call) Run ¶
func (_c *MockComment_ParseInto_Call) Run(run func(c string, s *openapi.Extendable[openapi.OpenAPI])) *MockComment_ParseInto_Call
func (*MockComment_ParseInto_Call) RunAndReturn ¶
func (_c *MockComment_ParseInto_Call) RunAndReturn(run func(c string, s *openapi.Extendable[openapi.OpenAPI]) error) *MockComment_ParseInto_Call
type MockComment_Tag_Call ¶
MockComment_Tag_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Tag'
func (*MockComment_Tag_Call) Return ¶
func (_c *MockComment_Tag_Call) Return(s string) *MockComment_Tag_Call
func (*MockComment_Tag_Call) Run ¶
func (_c *MockComment_Tag_Call) Run(run func()) *MockComment_Tag_Call
func (*MockComment_Tag_Call) RunAndReturn ¶
func (_c *MockComment_Tag_Call) RunAndReturn(run func() string) *MockComment_Tag_Call
type MockComment_Usage_Call ¶
MockComment_Usage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Usage'
func (*MockComment_Usage_Call) Return ¶
func (_c *MockComment_Usage_Call) Return(s string) *MockComment_Usage_Call
func (*MockComment_Usage_Call) Run ¶
func (_c *MockComment_Usage_Call) Run(run func()) *MockComment_Usage_Call
func (*MockComment_Usage_Call) RunAndReturn ¶
func (_c *MockComment_Usage_Call) RunAndReturn(run func() string) *MockComment_Usage_Call
type MockRegistry ¶
MockRegistry is an autogenerated mock type for the Registry type
func NewMockRegistry ¶
func NewMockRegistry(t interface {
mock.TestingT
Cleanup(func())
}) *MockRegistry
NewMockRegistry creates a new instance of MockRegistry. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockRegistry) Comments ¶
func (_mock *MockRegistry) Comments() []Comment
Comments provides a mock function for the type MockRegistry
func (*MockRegistry) EXPECT ¶
func (_m *MockRegistry) EXPECT() *MockRegistry_Expecter
func (*MockRegistry) Parse ¶
func (_mock *MockRegistry) Parse(line string, spec *openapi.Extendable[openapi.OpenAPI]) error
Parse provides a mock function for the type MockRegistry
func (*MockRegistry) Register ¶
func (_mock *MockRegistry) Register(c Comment)
Register provides a mock function for the type MockRegistry
type MockRegistry_Comments_Call ¶
MockRegistry_Comments_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Comments'
func (*MockRegistry_Comments_Call) Return ¶
func (_c *MockRegistry_Comments_Call) Return(comments []Comment) *MockRegistry_Comments_Call
func (*MockRegistry_Comments_Call) Run ¶
func (_c *MockRegistry_Comments_Call) Run(run func()) *MockRegistry_Comments_Call
func (*MockRegistry_Comments_Call) RunAndReturn ¶
func (_c *MockRegistry_Comments_Call) RunAndReturn(run func() []Comment) *MockRegistry_Comments_Call
type MockRegistry_Expecter ¶
type MockRegistry_Expecter struct {
// contains filtered or unexported fields
}
func (*MockRegistry_Expecter) Comments ¶
func (_e *MockRegistry_Expecter) Comments() *MockRegistry_Comments_Call
Comments is a helper method to define mock.On call
func (*MockRegistry_Expecter) Parse ¶
func (_e *MockRegistry_Expecter) Parse(line interface{}, spec interface{}) *MockRegistry_Parse_Call
Parse is a helper method to define mock.On call
- line string
- spec *openapi.Extendable[openapi.OpenAPI]
func (*MockRegistry_Expecter) Register ¶
func (_e *MockRegistry_Expecter) Register(c interface{}) *MockRegistry_Register_Call
Register is a helper method to define mock.On call
- c Comment
type MockRegistry_Parse_Call ¶
MockRegistry_Parse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Parse'
func (*MockRegistry_Parse_Call) Return ¶
func (_c *MockRegistry_Parse_Call) Return(err error) *MockRegistry_Parse_Call
func (*MockRegistry_Parse_Call) Run ¶
func (_c *MockRegistry_Parse_Call) Run(run func(line string, spec *openapi.Extendable[openapi.OpenAPI])) *MockRegistry_Parse_Call
func (*MockRegistry_Parse_Call) RunAndReturn ¶
func (_c *MockRegistry_Parse_Call) RunAndReturn(run func(line string, spec *openapi.Extendable[openapi.OpenAPI]) error) *MockRegistry_Parse_Call
type MockRegistry_Register_Call ¶
MockRegistry_Register_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Register'
func (*MockRegistry_Register_Call) Return ¶
func (_c *MockRegistry_Register_Call) Return() *MockRegistry_Register_Call
func (*MockRegistry_Register_Call) Run ¶
func (_c *MockRegistry_Register_Call) Run(run func(c Comment)) *MockRegistry_Register_Call
func (*MockRegistry_Register_Call) RunAndReturn ¶
func (_c *MockRegistry_Register_Call) RunAndReturn(run func(c Comment)) *MockRegistry_Register_Call
type Registry ¶
type Registry interface {
Register(c Comment)
Parse(line string, spec *openapi.Extendable[openapi.OpenAPI]) error
Comments() []Comment
}
Registry allows to register and parse comments.
type SecurityComment ¶
type SecurityComment struct{}
SecurityComment is a comment that updates the security of the global specification.
func (*SecurityComment) ParseInto ¶
func (c *SecurityComment) ParseInto(line string, s *openapi.Extendable[openapi.OpenAPI]) error
ParseInto implements Comment.
type SecuritySchemeBearerFormatComment ¶
type SecuritySchemeBearerFormatComment struct{}
SecuritySchemeBearerFormatComment is a comment that updates the 'bearerFormat' property of a security scheme.
func (*SecuritySchemeBearerFormatComment) ParseInto ¶
func (c *SecuritySchemeBearerFormatComment) ParseInto(line string, s *openapi.Extendable[openapi.OpenAPI]) error
ParseInto implements Comment.
func (*SecuritySchemeBearerFormatComment) Tag ¶
func (c *SecuritySchemeBearerFormatComment) Tag() string
Tag implements Comment.
func (*SecuritySchemeBearerFormatComment) Usage ¶
func (c *SecuritySchemeBearerFormatComment) Usage() string
Usage implements Comment.
type SecuritySchemeComment ¶
type SecuritySchemeComment struct{}
SecuritySchemeComment is a comment that adds a security scheme to the specification.
func (*SecuritySchemeComment) ParseInto ¶
func (c *SecuritySchemeComment) ParseInto(line string, s *openapi.Extendable[openapi.OpenAPI]) error
ParseInto implements Comment.
func (*SecuritySchemeComment) Tag ¶
func (c *SecuritySchemeComment) Tag() string
Tag implements Comment.
func (*SecuritySchemeComment) Usage ¶
func (c *SecuritySchemeComment) Usage() string
Usage implements Comment.
type SecuritySchemeInComment ¶
type SecuritySchemeInComment struct{}
SecuritySchemeInComment is a comment that updates the 'in' property of a security scheme.
func (*SecuritySchemeInComment) ParseInto ¶
func (c *SecuritySchemeInComment) ParseInto(line string, s *openapi.Extendable[openapi.OpenAPI]) error
ParseInto implements Comment.
func (*SecuritySchemeInComment) Tag ¶
func (c *SecuritySchemeInComment) Tag() string
Tag implements Comment.
func (*SecuritySchemeInComment) Usage ¶
func (c *SecuritySchemeInComment) Usage() string
Usage implements Comment.
type SecuritySchemeNameComment ¶
type SecuritySchemeNameComment struct{}
SecuritySchemeNameComment is a comment that updates the name of a security scheme.
func (*SecuritySchemeNameComment) ParseInto ¶
func (c *SecuritySchemeNameComment) ParseInto(line string, s *openapi.Extendable[openapi.OpenAPI]) error
ParseInto implements Comment.
func (*SecuritySchemeNameComment) Tag ¶
func (c *SecuritySchemeNameComment) Tag() string
Tag implements Comment.
func (*SecuritySchemeNameComment) Usage ¶
func (c *SecuritySchemeNameComment) Usage() string
Usage implements Comment.
type SecuritySchemeSchemeComment ¶
type SecuritySchemeSchemeComment struct{}
SecuritySchemeSchemeComment is a comment that updates the 'scheme' property of a security scheme.
func (*SecuritySchemeSchemeComment) ParseInto ¶
func (c *SecuritySchemeSchemeComment) ParseInto(line string, s *openapi.Extendable[openapi.OpenAPI]) error
ParseInto implements Comment.
func (*SecuritySchemeSchemeComment) Tag ¶
func (c *SecuritySchemeSchemeComment) Tag() string
Tag implements Comment.
func (*SecuritySchemeSchemeComment) Usage ¶
func (c *SecuritySchemeSchemeComment) Usage() string
Usage implements Comment.
type ServerDescriptionComment ¶
type ServerDescriptionComment struct{}
ServerDescriptionComment is a comment that updates the description of the last added server.
func (*ServerDescriptionComment) ParseInto ¶
func (c *ServerDescriptionComment) ParseInto(line string, s *openapi.Extendable[openapi.OpenAPI]) error
ParseInto implements Comment.
func (*ServerDescriptionComment) Tag ¶
func (c *ServerDescriptionComment) Tag() string
Tag implements Comment.
func (*ServerDescriptionComment) Usage ¶
func (c *ServerDescriptionComment) Usage() string
Usage implements Comment.
type ServerURLComment ¶
type ServerURLComment struct{}
ServerURLComment is a comment that adds a new server to the global specification.
func (*ServerURLComment) ParseInto ¶
func (c *ServerURLComment) ParseInto(line string, s *openapi.Extendable[openapi.OpenAPI]) error
ParseInto implements Comment.
func (*ServerURLComment) Usage ¶
func (c *ServerURLComment) Usage() string
Usage implements Comment.
type ServerVariableDefaultComment ¶
type ServerVariableDefaultComment struct{}
ServerVariableDefaultComment sets the default value for a server variable.
func (*ServerVariableDefaultComment) ParseInto ¶
func (c *ServerVariableDefaultComment) ParseInto(line string, s *openapi.Extendable[openapi.OpenAPI]) error
ParseInto implements Comment.
func (*ServerVariableDefaultComment) Tag ¶
func (c *ServerVariableDefaultComment) Tag() string
Tag implements Comment.
func (*ServerVariableDefaultComment) Usage ¶
func (c *ServerVariableDefaultComment) Usage() string
Usage implements Comment.
type ServerVariableDescriptionComment ¶
type ServerVariableDescriptionComment struct{}
ServerVariableDescriptionComment sets the description for a server variable.
func (*ServerVariableDescriptionComment) ParseInto ¶
func (c *ServerVariableDescriptionComment) ParseInto(line string, s *openapi.Extendable[openapi.OpenAPI]) error
ParseInto implements Comment.
func (*ServerVariableDescriptionComment) Tag ¶
func (c *ServerVariableDescriptionComment) Tag() string
Tag implements Comment.
func (*ServerVariableDescriptionComment) Usage ¶
func (c *ServerVariableDescriptionComment) Usage() string
Usage implements Comment.
type ServerVariableEnumComment ¶
type ServerVariableEnumComment struct{}
ServerVariableEnumComment sets the enum values for a server variable.
func (*ServerVariableEnumComment) ParseInto ¶
func (c *ServerVariableEnumComment) ParseInto(line string, s *openapi.Extendable[openapi.OpenAPI]) error
ParseInto implements Comment.
func (*ServerVariableEnumComment) Tag ¶
func (c *ServerVariableEnumComment) Tag() string
Tag implements Comment.
func (*ServerVariableEnumComment) Usage ¶
func (c *ServerVariableEnumComment) Usage() string
Usage implements Comment.
type TagDescriptionComment ¶
type TagDescriptionComment struct{}
func (*TagDescriptionComment) ParseInto ¶
func (c *TagDescriptionComment) ParseInto(line string, s *openapi.Extendable[openapi.OpenAPI]) error
ParseInto implements Comment.
func (*TagDescriptionComment) Tag ¶
func (c *TagDescriptionComment) Tag() string
Tag implements Comment.
func (*TagDescriptionComment) Usage ¶
func (c *TagDescriptionComment) Usage() string
Usage implements Comment.
type TagExternalDocsDescriptionComment ¶
type TagExternalDocsDescriptionComment struct{}
func (*TagExternalDocsDescriptionComment) ParseInto ¶
func (c *TagExternalDocsDescriptionComment) ParseInto(line string, s *openapi.Extendable[openapi.OpenAPI]) error
ParseInto implements Comment.
func (*TagExternalDocsDescriptionComment) Tag ¶
func (c *TagExternalDocsDescriptionComment) Tag() string
Tag implements Comment.
func (*TagExternalDocsDescriptionComment) Usage ¶
func (c *TagExternalDocsDescriptionComment) Usage() string
Usage implements Comment.
type TagExternalDocsURLComment ¶
type TagExternalDocsURLComment struct{}
func (*TagExternalDocsURLComment) ParseInto ¶
func (c *TagExternalDocsURLComment) ParseInto(line string, s *openapi.Extendable[openapi.OpenAPI]) error
ParseInto implements Comment.
func (*TagExternalDocsURLComment) Tag ¶
func (c *TagExternalDocsURLComment) Tag() string
Tag implements Comment.
func (*TagExternalDocsURLComment) Usage ¶
func (c *TagExternalDocsURLComment) Usage() string
Usage implements Comment.
type TagNameComment ¶
type TagNameComment struct{}
func (*TagNameComment) ParseInto ¶
func (c *TagNameComment) ParseInto(line string, s *openapi.Extendable[openapi.OpenAPI]) error
ParseInto implements Comment.
Source Files
¶
- comment.go
- comment_mock.go
- externaldocs_description.go
- externaldocs_url.go
- info_contact_email.go
- info_contact_name.go
- info_contact_url.go
- info_description.go
- info_license_identifier.go
- info_license_name.go
- info_license_url.go
- info_summary.go
- info_termsofservice.go
- info_title.go
- info_version.go
- registry.go
- registry_mock.go
- security.go
- security_scheme.go
- security_scheme_bearer_format.go
- security_scheme_in.go
- security_scheme_name.go
- security_scheme_scheme.go
- server_description.go
- server_url.go
- server_variable_default.go
- server_variable_description.go
- server_variable_enum.go
- tag_description.go
- tag_externaldocs_description.go
- tag_externaldocs_url.go
- tag_name.go