Skip to content

Commit c72b5c6

Browse files
- Tests all passing.
1 parent 469b20d commit c72b5c6

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

cmd/argparse/argparse.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ func init() {
6969
rootCmd.PersistentFlags().StringVar(&runtimeCtx.CLIResourceStr, "resource", ``, "resource name")
7070
rootCmd.PersistentFlags().StringVar(&runtimeCtx.CLIMethodName, "method", ``, "method name")
7171
rootCmd.PersistentFlags().StringVar(&runtimeCtx.CLISchemaDir, "schema-dir", ``, "path to schema directory")
72+
rootCmd.PersistentFlags().BoolVar(&runtimeCtx.CLISkipSchemaValidation, "skip-schema-validation", false, "skip schema validation")
7273
rootCmd.PersistentFlags().BoolVarP(&runtimeCtx.VerboseFlag, dto.VerboseFlagKey, "v", false, "Verbose flag")
7374

7475
rootCmd.AddCommand(execCmd)

pkg/dto/runtime_ctx.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ type RuntimeCtx struct {
6565
CLIResourceStr string
6666
CLIMethodName string
6767
CLISchemaDir string
68+
CLISkipSchemaValidation bool
6869
}
6970

7071
func setInt(iPtr *int, val string) error {

public/discovery/static_analyzer.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -734,10 +734,11 @@ func newSimpleSQLAnalyzerFactory(
734734
schemaDir string,
735735
) StaticAnalyzerFactory {
736736
return &simpleSQLAnalyzerFactory{
737-
registryURL: registryURL,
738-
rtCtx: rtCtx,
739-
persistenceSystem: persistenceSystem,
740-
schemaDir: schemaDir,
737+
registryURL: registryURL,
738+
rtCtx: rtCtx,
739+
persistenceSystem: persistenceSystem,
740+
schemaDir: schemaDir,
741+
skipSchemaValidation: rtCtx.CLISkipSchemaValidation,
741742
}
742743
}
743744

0 commit comments

Comments
 (0)