Versions in this module Expand all Collapse all v0 v0.1.0 Nov 2, 2024 Changes in this version + const ContentType + const OAS2 + const OAS3 + type Components struct + Schemas map[string]Schema + type Info struct + Description string + Title string + Version string + type MediaType struct + Schema *Schema + type OpenAPI struct + Components Components + Definitions map[string]Schema + Info Info + Openapi string + Paths map[string]PathItem + Servers []Server + Swagger string + func FetchOpenAPI(pathOrURL string) (*OpenAPI, error) + func (o *OpenAPI) DereferenceSchema(schema Schema) (*Schema, error) + func (o *OpenAPI) GetSchemaFromResponse(r Response) *Schema + func (o *OpenAPI) OASVersion() string + type Operation struct + Description string + OperationID string + Parameters []Parameter + RequestBody *RequestBody + Responses map[string]Response + Summary string + type Parameter struct + Description string + In string + Name string + Required bool + Schema Schema + type PathItem struct + Delete *Operation + Get *Operation + Patch *Operation + Post *Operation + Put *Operation + type RequestBody struct + Content map[string]MediaType + Description string + Required bool + Schema *Schema + type Response struct + Content map[string]MediaType + Description string + Schema *Schema + type Schema struct + Format string + Items *Schema + Properties map[string]Schema + ReadOnly bool + Ref string + Required []string + Type string + XAEPResource *XAEPResource + type Server struct + Description string + URL string + Variables map[string]ServerVariable + type ServerVariable struct + Default string + Description string + Enum []string + type XAEPResource struct + Parents []string + Patterns []string + Plural string + Singular string