Documentation
¶
Index ¶
- type OpenAPI
- func (oa *OpenAPI) AddArraySchema(field *astp.Element, prop *spec.RefOrSpec[spec.Schema], tag string) *spec.RefOrSpec[spec.Schema]
- func (oa *OpenAPI) AddObjectSchema(field *astp.Element, prop *spec.RefOrSpec[spec.Schema], tag string) *spec.RefOrSpec[spec.Schema]
- func (oa *OpenAPI) AddResponse(op *spec.Extendable[spec.Operation], code string, ...)
- func (oa *OpenAPI) HandleServerInfo(si []string)
- func (oa *OpenAPI) HandleStructs(ctl *astp.Element)
- func (oa *OpenAPI) InitPlugin(s *fw.Server)
- func (oa *OpenAPI) Log(t string, msg string)
- func (oa *OpenAPI) NewArrayObjectResponse(schemaName string, desc string, contentType string) *spec.RefOrSpec[spec.Extendable[spec.Response]]
- func (oa *OpenAPI) NewArraySchema(comment string) *spec.RefOrSpec[spec.Schema]
- func (oa *OpenAPI) NewEnumSchema(v string) *spec.RefOrSpec[spec.Schema]
- func (oa *OpenAPI) NewFloatProp(prop *spec.RefOrSpec[spec.Schema], typeString string) (isArray bool, sa spec.SingleOrArray[string])
- func (oa *OpenAPI) NewIntProp(prop *spec.RefOrSpec[spec.Schema], typeString string) (isArray bool, sa spec.SingleOrArray[string])
- func (oa *OpenAPI) NewObjectResponse(schemaName string, desc string, contentType string) *spec.RefOrSpec[spec.Extendable[spec.Response]]
- func (oa *OpenAPI) NewObjectSchema(comment string) *spec.RefOrSpec[spec.Schema]
- func (oa *OpenAPI) NewProp(field *astp.Element, param ...*spec.RefOrSpec[spec.Extendable[spec.Parameter]]) (*spec.RefOrSpec[spec.Schema], bool, bool)
- func (oa *OpenAPI) NewResponse(desc string, v string, contentType string) *spec.RefOrSpec[spec.Extendable[spec.Response]]
- func (oa *OpenAPI) NewSimpleParam(element *astp.Element, tag string) *spec.RefOrSpec[spec.Extendable[spec.Parameter]]
- func (oa *OpenAPI) NewStringProp(prop *spec.RefOrSpec[spec.Schema], typeString string) (isArray bool, sa spec.SingleOrArray[string])
- func (oa *OpenAPI) NewStringResponse(desc string, contentType string) *spec.RefOrSpec[spec.Extendable[spec.Response]]
- func (oa *OpenAPI) Print(slot string)
- func (oa *OpenAPI) WriteOut() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OpenAPI ¶
type OpenAPI struct { *spec.Extendable[spec.OpenAPI] // contains filtered or unexported fields }
func NewOpenAPIPlugin ¶ added in v0.2.0
func NewOpenAPIPlugin() *OpenAPI
func (*OpenAPI) AddArraySchema ¶ added in v0.1.5
func (*OpenAPI) AddObjectSchema ¶ added in v0.1.5
func (*OpenAPI) AddResponse ¶ added in v0.0.8
func (*OpenAPI) HandleServerInfo ¶
func (*OpenAPI) HandleStructs ¶
func (*OpenAPI) InitPlugin ¶ added in v0.2.0
func (*OpenAPI) NewArrayObjectResponse ¶ added in v0.1.4
func (*OpenAPI) NewArraySchema ¶ added in v0.1.5
func (*OpenAPI) NewEnumSchema ¶ added in v0.1.0
func (*OpenAPI) NewFloatProp ¶ added in v0.2.11
func (*OpenAPI) NewIntProp ¶ added in v0.2.11
func (*OpenAPI) NewObjectResponse ¶ added in v0.0.8
func (*OpenAPI) NewObjectSchema ¶ added in v0.0.8
func (*OpenAPI) NewResponse ¶ added in v0.0.8
func (*OpenAPI) NewSimpleParam ¶ added in v0.0.9
func (*OpenAPI) NewStringProp ¶ added in v0.2.11
func (*OpenAPI) NewStringResponse ¶ added in v0.0.8
Click to show internal directories.
Click to hide internal directories.