Skip to content

Commit f97edda

Browse files
committed
Fix for ReferenceValidationConfig cache_dir
1 parent 6917688 commit f97edda

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/linkml_reference_validator/plugins/reference_validation_plugin.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,16 @@ def __init__(
9494
self.validator = SupportingTextValidator(config)
9595
self.schema_view: Optional[SchemaView] = None
9696

97+
@property
98+
def cache_dir(self) -> Path:
99+
"""Return the cache directory for this plugin."""
100+
return self.config.cache_dir
101+
102+
@cache_dir.setter
103+
def cache_dir(self, value: Path) -> None:
104+
"""Update the cache directory for this plugin."""
105+
self.config.cache_dir = value
106+
97107
def pre_process(self, context: ValidationContext) -> None:
98108
"""Pre-process hook called before validation.
99109

0 commit comments

Comments
 (0)