@@ -348,32 +348,32 @@ let createRESTlerCompilerConfiguration (workDirectory: string) (grammar: Grammar
348348 // If specified, update the engine settings with hints derived from the grammar.
349349 EngineSettingsFilePath = None
350350
351- IncludeOptionalParameters = true
351+ IncludeOptionalParameters = compileConfig.IncludeOptionalParameters
352352
353- UseQueryExamples = true
353+ UseQueryExamples = compileConfig.UseQueryExamples
354354
355- UseBodyExamples = true
355+ UseBodyExamples = compileConfig.UseBodyExamples
356356
357357 /// When set to 'true', discovers examples and outputs them to a directory next to the grammar.
358358 /// If an existing directory exists, does not over-write it.
359- DiscoverExamples = true
359+ DiscoverExamples = compileConfig.DiscoverExamples
360360
361361 /// The directory where the compiler should look for examples.
362362 /// If 'discoverExamples' is true, this directory will contain the
363363 /// example files that have been discovered.
364364 /// If 'discoverExamples' is false, every time an example is used in the
365365 /// Swagger file, RESTler will first look for it in this directory.
366- ExamplesDirectory = workDirectory ++ " Examples"
366+ ExamplesDirectory = match compileConfig.ExamplesDirectory with None -> workDirectory ++ " Examples" | Some d -> d
367367
368368 /// Perform data fuzzing
369- DataFuzzing = true
369+ DataFuzzing = compileConfig.DataFuzzing
370370
371371 // When true, only fuzz the GET requests
372372 ReadOnlyFuzz = compileConfig.ReadOnlyFuzz
373373
374- ResolveQueryDependencies = true
374+ ResolveQueryDependencies = compileConfig.ResolveQueryDependencies
375375
376- ResolveBodyDependencies = true
376+ ResolveBodyDependencies = compileConfig.ResolveBodyDependencies
377377
378378 UseRefreshableToken = compileConfig.UseRefreshableToken
379379
0 commit comments