Versions in this module Expand all Collapse all v0 v0.16.2 Jun 10, 2024 Changes in this version + const JSONFileType + const OAS2 + const OAS3 + const OAS31 + const YAMLFileType + var AllFormats = []string + var Continue = &continueError + var OAS2Format = []string + var OAS3AllFormat = []string + var OAS3Format = []string + var OAS3_1Format = []string + var OpenAPI2SchemaData string + var OpenAPI31SchemaData string + var OpenAPI3SchemaData string + func TranslateMapParallel[K comparable, V any, RV any](m *orderedmap.Map[K, V], translate TranslateFunc[orderedmap.Pair[K, V], RV], ...) error + func TranslatePipeline[IN any, OUT any](in <-chan IN, out chan<- OUT, translate TranslateFunc[IN, OUT]) error + func TranslateSliceParallel[IN any, OUT any](in []IN, translate TranslateSliceFunc[IN, OUT], result ActionFunc[OUT]) error + type ActionFunc func(T) error + type DocumentConfiguration struct + AllowFileReferences bool + AllowRemoteReferences bool + AvoidIndexBuild bool + BasePath string + BaseURL *url.URL + BundleInlineRefs bool + BypassDocumentCheck bool + ExtractRefsSequentially bool + FileFilter []string + IgnoreArrayCircularReferences bool + IgnorePolymorphicCircularReferences bool + LocalFS fs.FS + Logger *slog.Logger + RemoteFS fs.FS + RemoteURLHandler utils.RemoteURLHandler + SkipCircularReferenceCheck bool + func NewDocumentConfiguration() *DocumentConfiguration + type ResultFunc func(V) error + type SpecInfo struct + APISchema string + Error error + Generated time.Time + OriginalIndentation int + RootNode *yaml.Node + SpecBytes *[]byte + SpecFileType string + SpecFormat string + SpecJSON *map[string]interface{} + SpecJSONBytes *[]byte + SpecType string + Version string + VersionNumeric float32 + func ExtractSpecInfo(spec []byte) (*SpecInfo, error) + func ExtractSpecInfoWithConfig(spec []byte, config *DocumentConfiguration) (*SpecInfo, error) + func ExtractSpecInfoWithDocumentCheck(spec []byte, bypass bool) (*SpecInfo, error) + func ExtractSpecInfoWithDocumentCheckSync(spec []byte, bypass bool) (*SpecInfo, error) + type TranslateFunc func(IN) (OUT, error) + type TranslateMapFunc func(IN) (OUT, error) + type TranslateSliceFunc func(int, IN) (OUT, error)