mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-09 20:47:44 +00:00
fix: add paths/parent nodes to schemas as well
This commit is contained in:
committed by
Dave Shanley
parent
53789cbc1b
commit
c75a1bfaf4
@@ -1648,6 +1648,8 @@ func (index *SpecIndex) extractDefinitionsAndSchemas(schemasNode *yaml.Node, pat
|
||||
Definition: def,
|
||||
Name: name,
|
||||
Node: schema,
|
||||
Path: fmt.Sprintf("$.components.schemas.%s", name),
|
||||
ParentNode: schemasNode,
|
||||
}
|
||||
index.allSchemas[def] = ref
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user