mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-10 12:37:48 +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 {
|
if index != nil && index.allComponentSchemas != nil {
|
||||||
return index.allComponentSchemas
|
return index.allComponentSchemas
|
||||||
}
|
}
|
||||||
if index != nil && index.allComponentSchemas == nil {
|
|
||||||
schemaMap := syncMapToMap[string, *Reference](index.allComponentSchemaDefinitions)
|
schemaMap := syncMapToMap[string, *Reference](index.allComponentSchemaDefinitions)
|
||||||
index.allComponentSchemas = schemaMap
|
index.allComponentSchemas = schemaMap
|
||||||
return index.allComponentSchemas
|
return index.allComponentSchemas
|
||||||
}
|
}
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// GetAllSecuritySchemes will return all security schemes / definitions found in the document.
|
// GetAllSecuritySchemes will return all security schemes / definitions found in the document.
|
||||||
func (index *SpecIndex) GetAllSecuritySchemes() map[string]*Reference {
|
func (index *SpecIndex) GetAllSecuritySchemes() map[string]*Reference {
|
||||||
|
|||||||
Reference in New Issue
Block a user