Skip to content

Commit b97e203

Browse files
author
Tom Reitz
committed
bugfix
1 parent c4a62b4 commit b97e203

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lightbeam/validate.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ def validate(self):
3636
# The below should go in __init__(), but rely on lightbeam.config which is not yet available there.
3737
self.fail_fast_threshold = self.lightbeam.config.get("validate",{}).get("references",{}).get("max_failures", self.DEFAULT_FAIL_FAST_THRESHOLD)
3838
self.validation_methods = self.lightbeam.config.get("validate",{}).get("methods",self.DEFAULT_VALIDATION_METHODS)
39-
if type(validation_methods)==str and (validation_methods=="*" or validation_methods.lower()=='all'):
40-
validation_methods = self.DEFAULT_VALIDATION_METHODS
41-
validation_methods.append("references")
39+
if type(self.validation_methods)==str and (self.validation_methods=="*" or self.validation_methods.lower()=='all'):
40+
self.validation_methods = self.DEFAULT_VALIDATION_METHODS
41+
self.validation_methods.append("references")
4242

4343
self.lightbeam.api.load_swagger_docs()
4444
self.logger.info(f"validating by methods {self.validation_methods}...")

0 commit comments

Comments
 (0)