Skip to content

Commit

Permalink
fix: always put metadata version when generating
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarolopez committed Aug 22, 2024
1 parent f56c519 commit 36a3adc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ai4_metadata/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ def generate(

generated_json: collections.OrderedDict[str, typing.Any] = collections.OrderedDict()

version = properties.pop("metadata_version").get("example")
generated_json["metadata_version"] = version

# NOTE(aloga): this works for the current schema, but we need to handle this
# recursively in order to make it work for nested objects
for key, value in properties.items():
Expand Down

0 comments on commit 36a3adc

Please sign in to comment.