Add ExampleConfigFilePath RETler option (#206)
Co-authored-by: stas <statis@microsoft.com>
This commit is contained in:
Родитель
a89f22c4d5
Коммит
88e005934c
|
@ -364,6 +364,8 @@ let createRESTlerCompilerConfiguration (workDirectory: string) (grammar: Grammar
|
|||
/// If 'discoverExamples' is false, every time an example is used in the
|
||||
/// Swagger file, RESTler will first look for it in this directory.
|
||||
ExamplesDirectory = match compileConfig.ExamplesDirectory with None -> workDirectory ++ "Examples" | Some d -> d
|
||||
|
||||
ExampleConfigFilePath = compileConfig.ExampleConfigFilePath
|
||||
|
||||
/// Perform data fuzzing
|
||||
DataFuzzing = compileConfig.DataFuzzing
|
||||
|
|
|
@ -59,6 +59,7 @@ type CompileConfiguration =
|
|||
|
||||
DiscoverExamples : bool
|
||||
ExamplesDirectory : string option
|
||||
ExampleConfigFilePath : string option
|
||||
|
||||
DataFuzzing : bool
|
||||
ResolveQueryDependencies: bool
|
||||
|
@ -79,6 +80,7 @@ type CompileConfiguration =
|
|||
CustomDictionary = None
|
||||
DiscoverExamples = true
|
||||
ExamplesDirectory = None
|
||||
ExampleConfigFilePath = None
|
||||
DataFuzzing = true
|
||||
ResolveQueryDependencies = true
|
||||
ResolveBodyDependencies = true
|
||||
|
|
|
@ -302,6 +302,8 @@ module Compiler =
|
|||
/// When set to 'true', discovers examples and outputs them to a directory next to the grammar.
|
||||
/// If an existing directory exists, does not over-write it.
|
||||
DiscoverExamples : bool
|
||||
|
||||
ExampleConfigFilePath : string option
|
||||
|
||||
/// The directory where the compiler should look for examples.
|
||||
/// If 'discoverExamples' is true, this directory will contain the
|
||||
|
|
Загрузка…
Ссылка в новой задаче