mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-10 20:47:44 +00:00
Instead of using "root.yaml" as a theoretical root, use the real filename of the root spec (often openapi.yaml). This fixes issues with resolving references in rules such as unsused-components.
This commit is contained in:
@@ -39,6 +39,9 @@ type DocumentConfiguration struct {
|
||||
// To avoid sucking in all the files, set the FileFilter to a list of specific files to be included.
|
||||
BasePath string // set the Base Path for resolving relative references if the spec is exploded.
|
||||
|
||||
// SpecFilePath is the name of the root specification file (usually named "openapi.yaml").
|
||||
SpecFilePath string
|
||||
|
||||
// FileFilter is a list of specific files to be included by the rolodex when looking up references. If this value
|
||||
// is set, then only these specific files will be included. If this value is not set, then all files will be included.
|
||||
FileFilter []string
|
||||
|
||||
Reference in New Issue
Block a user