From 7abc4abc8e29c7d9654471c0aea88ab6c07e06ea Mon Sep 17 00:00:00 2001 From: Rahul Desai Date: Wed, 2 Oct 2024 10:35:12 -0700 Subject: [PATCH] add support for keyword in nextflow schema --- CHANGELOG.md | 7 +++++++ latch_cli/nextflow/config.py | 7 ++++++- setup.py | 2 +- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 97cd3cc5..83f2cc6e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,13 @@ Types of changes # Latch SDK Changelog +## v2.53.1 - 2024-10-02 + +### Added + +* Nextflow + - Add support for $defs keyword for metadata generation + ## v2.53.0 - 2024-09-28 ### Changed diff --git a/latch_cli/nextflow/config.py b/latch_cli/nextflow/config.py index 6e2be60c..c6cae224 100644 --- a/latch_cli/nextflow/config.py +++ b/latch_cli/nextflow/config.py @@ -94,7 +94,12 @@ def generate_metadata( click.secho(f"Generated `{metadata_path}`.", fg="green") params = [] - for section in schema.get("definitions", {}).values(): + + defs = schema.get("definitions") + if defs is None: + defs = schema.get("$defs", {}) + + for section in defs.values(): section_title = section.get("title") required_params = set(section.get("required", [])) diff --git a/setup.py b/setup.py index 31659c01..8e535c75 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ setup( name="latch", - version="v2.53.0", + version="v2.53.1", author_email="kenny@latch.bio", description="The Latch SDK", packages=find_packages(),