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:
Calvin Lobo
2024-08-16 12:44:30 -04:00
committed by quobix
parent 7eb70792a3
commit 9ab482ac9b
4 changed files with 8 additions and 1 deletions

View File

@@ -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