mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-08 12:37:49 +00:00
remove unused fields
This commit is contained in:
@@ -166,14 +166,8 @@ type SpecIndex struct {
|
|||||||
operationTagsCount int // number of unique tags in operations
|
operationTagsCount int // number of unique tags in operations
|
||||||
globalTagsCount int // number of global tags defined
|
globalTagsCount int // number of global tags defined
|
||||||
totalTagsCount int // number unique tags in spec
|
totalTagsCount int // number unique tags in spec
|
||||||
securitySchemesCount int // security schemes
|
|
||||||
globalRequestBodiesCount int // component request bodies
|
|
||||||
globalResponsesCount int // component responses
|
|
||||||
globalHeadersCount int // component headers
|
|
||||||
globalExamplesCount int // component examples
|
|
||||||
globalLinksCount int // component links
|
globalLinksCount int // component links
|
||||||
globalCallbacksCount int // component callbacks
|
globalCallbacksCount int // component callbacks
|
||||||
globalCallbacks int // component callbacks.
|
|
||||||
pathCount int // number of paths
|
pathCount int // number of paths
|
||||||
operationCount int // number of operations
|
operationCount int // number of operations
|
||||||
operationParamCount int // number of params defined in operations
|
operationParamCount int // number of params defined in operations
|
||||||
@@ -185,9 +179,7 @@ type SpecIndex struct {
|
|||||||
root *yaml.Node // the root document
|
root *yaml.Node // the root document
|
||||||
pathsNode *yaml.Node // paths node
|
pathsNode *yaml.Node // paths node
|
||||||
tagsNode *yaml.Node // tags node
|
tagsNode *yaml.Node // tags node
|
||||||
componentsNode *yaml.Node // components node
|
|
||||||
parametersNode *yaml.Node // components/parameters node
|
parametersNode *yaml.Node // components/parameters node
|
||||||
allParametersNode map[string]*Reference // all parameters node
|
|
||||||
allParameters map[string]*Reference // all parameters (components/defs)
|
allParameters map[string]*Reference // all parameters (components/defs)
|
||||||
schemasNode *yaml.Node // components/schemas node
|
schemasNode *yaml.Node // components/schemas node
|
||||||
allInlineSchemaDefinitions []*Reference // all schemas found in document outside of components (openapi) or definitions (swagger).
|
allInlineSchemaDefinitions []*Reference // all schemas found in document outside of components (openapi) or definitions (swagger).
|
||||||
@@ -207,7 +199,6 @@ type SpecIndex struct {
|
|||||||
allLinks map[string]*Reference // all links
|
allLinks map[string]*Reference // all links
|
||||||
callbacksNode *yaml.Node // components/callbacks node
|
callbacksNode *yaml.Node // components/callbacks node
|
||||||
allCallbacks map[string]*Reference // all components examples
|
allCallbacks map[string]*Reference // all components examples
|
||||||
externalDocumentsNode *yaml.Node // external documents node
|
|
||||||
allExternalDocuments map[string]*Reference // all external documents
|
allExternalDocuments map[string]*Reference // all external documents
|
||||||
externalSpecIndex map[string]*SpecIndex // create a primary index of all external specs and componentIds
|
externalSpecIndex map[string]*SpecIndex // create a primary index of all external specs and componentIds
|
||||||
refErrors []error // errors when indexing references
|
refErrors []error // errors when indexing references
|
||||||
|
|||||||
@@ -5,11 +5,12 @@ package index
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/pb33f/libopenapi/utils"
|
|
||||||
"gopkg.in/yaml.v3"
|
|
||||||
"net/url"
|
"net/url"
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
|
"github.com/pb33f/libopenapi/utils"
|
||||||
|
"gopkg.in/yaml.v3"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (index *SpecIndex) extractDefinitionsAndSchemas(schemasNode *yaml.Node, pathPrefix string) {
|
func (index *SpecIndex) extractDefinitionsAndSchemas(schemasNode *yaml.Node, pathPrefix string) {
|
||||||
|
|||||||
Reference in New Issue
Block a user