diff options
Diffstat (limited to 'src/hydrilla/json_instances.py')
-rw-r--r-- | src/hydrilla/json_instances.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hydrilla/json_instances.py b/src/hydrilla/json_instances.py index 4f4421f..fb34d5c 100644 --- a/src/hydrilla/json_instances.py +++ b/src/hydrilla/json_instances.py @@ -191,7 +191,7 @@ def read_instance(instance_or_path: InstanceSource) -> object: else: raise HaketiloException(_('err.util.text_not_valid_json')) -def get_schema_version(instance: object) -> tuple[int, ...]: +def get_schema_version(instance: object) -> versions.VerTuple: """ Parse passed object's "$schema" property and return the schema version tuple. """ @@ -202,7 +202,7 @@ def get_schema_version(instance: object) -> tuple[int, ...]: ver_str = match.group('ver') if match else None if ver_str is not None: - return versions.parse(ver_str) + return versions.parse_normalize(ver_str) else: raise HaketiloException(_('no_schema_number_in_instance')) |