mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-09 20:47:44 +00:00
fixed bad code.
This commit is contained in:
@@ -331,13 +331,10 @@ func (index *SpecIndex) GetAllComponentSchemas() map[string]*Reference {
|
||||
if index != nil && index.allComponentSchemas != nil {
|
||||
return index.allComponentSchemas
|
||||
}
|
||||
if index != nil && index.allComponentSchemas == nil {
|
||||
schemaMap := syncMapToMap[string, *Reference](index.allComponentSchemaDefinitions)
|
||||
index.allComponentSchemas = schemaMap
|
||||
return index.allComponentSchemas
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// GetAllSecuritySchemes will return all security schemes / definitions found in the document.
|
||||
func (index *SpecIndex) GetAllSecuritySchemes() map[string]*Reference {
|
||||
|
||||
Reference in New Issue
Block a user