Skip to content

Commit

Permalink
json schemas: force the cache to be cleared.
Browse files Browse the repository at this point in the history
Forces to clear cache for JSON schemas, to have the right schema content.

Co-Authored-by: Sébastien Délèze <sebastien.deleze@rero.ch>
  • Loading branch information
Sébastien Délèze committed Jun 7, 2021
1 parent 5e0e327 commit ad20ccc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sonar/json_schemas/json_schema_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def _load_schema(self):
rec_type = re.sub('ies$', 'y', rec_type)
rec_type = re.sub('s$', '', rec_type)

current_jsonschemas.get_schema.cache_clear()
schema_name = f'{self._resource_type}/{rec_type}-v1.0.0.json'

if has_custom_resource(self._resource_type):
Expand Down

0 comments on commit ad20ccc

Please # to comment.