package
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: Apr 26, 2024
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Body struct {
Description string `json:"description,omitempty"`
Content map[string]map[string]Schema `json:"content,omitempty"`
Required bool `json:"required,omitempty"`
}
type DocInfo struct {
Title string `json:"title"`
Description string `json:"description"`
Version string `json:"version"`
TermsOfService string `json:"termsOfService"`
}
type Parameter struct {
Name string `json:"name"`
In string `json:"in"`
Description string `json:"description,omitempty"`
Required bool `json:"required,omitempty"`
Schema Schema `json:"schema"`
}
type Request struct {
Tags []string `json:"tags,omitempty"`
OperationID string `json:"operationId"`
Parameters []Parameter `json:"parameters,omitempty"`
RequestBody *Body `json:"requestBody,omitempty"`
Responses map[string]Body `json:"responses,omitempty"`
}
type RequestComment struct {
}
type Server struct {
Url string `json:"url"`
}
type Spec struct {
Openapi string `json:"openapi"`
Info DocInfo `json:"info"`
Servers []Server `json:"servers"`
Tags []Tag `json:"tags"`
Paths map[string]map[string]any `json:"paths"`
Components struct {
Schema map[string]Schema `json:"schema"`
} `json:"components"`
}
type Tag struct {
Name string `json:"name"`
Description string `json:"description"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.