Skip to content

Conversation

Copy link

Copilot AI commented Jan 15, 2026

The nextflow_schema.json contained structural errors causing Seqera Platform to reject valid parameters with "One or more fields contain invalid values."

Changes

  • Fixed definition typo: miniatue_optionsminiature_options
  • Fixed broken references: allOf section now correctly references existing definitions instead of non-existent #/definitions/parameters
  • Improved documentation: Added description for n_components parameter
  • Fixed spelling errors: Corrected "thumbnauls" → "thumbnails" and "compatiable" → "compatible" in parameter descriptions

Before/After

// Before: broken reference
"allOf": [
  { "$ref": "#/definitions/parameters" }  // Does not exist
]

// After: valid references
"allOf": [
  { "$ref": "#/definitions/input_output_options" },
  { "$ref": "#/definitions/miniature_options" }
]

Schema now validates correctly and renders all parameter groups in the Seqera Platform launch form.

Original prompt

This section details on the original issue you should resolve

<issue_title>Broken references in schema preventing launch</issue_title>
<issue_description>The current nextflow_schema.json contains structural errors that prevent the Seqera Platform (Nextflow Tower) from correctly parsing the launch form. This results in a generic validation error: "One or more fields contain invalid values," even when the provided parameters are correct.

Issues Identified

  1. Broken Reference: The allOf block (responsible for rendering the UI groups) references #/definitions/parameters, which does not exist in the schema.
  2. Typo in Definitions: The definition for miniature options is misspelled as "miniatue_options", which may cause mismatches in the pipeline logic.
  3. Missing Parameter: The synapseconfig parameter is used in run configurations but is missing from the schema, preventing it from appearing in the launch UI.

Proposed Fix

  • - Rename "miniatue_options" to "miniature_options".
  • - Add a definition for synapseconfig.
  • - Update the allOf section at the bottom of the file to correctly reference the existing definition blocks:
"allOf": [
    { "$ref": "#/definitions/input_output_options" },
    { "$ref": "#/definitions/miniature_options" }
]
```</issue_description>

<agent_instructions>Fix the structure of nextflow_schema.json by:

Renaming the definition key "miniatue_options" to "miniature_options".

Updating the "allOf" section at the bottom to correctly reference #/definitions/input_output_options and #/definitions/miniature_options.

Adding a string parameter for "synapseconfig" inside the miniature options block.

Ensuring all property types (boolean for remove_bg, integer for level/n_components) and enums match the existing schema logic.</agent_instructions>

## Comments on the Issue (you are @copilot in this section)

<comments>
<comment_new><author>@adamjtaylor</author><body>
FYI @PanZiwei I think this is preventing launch. My guess is that the past Seqera Platform version was running an older version of nf-schema that didn't correctly surface the issues with the schema, which now a newer version is.</body></comment_new>
</comments>

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits January 15, 2026 10:41
Copilot AI changed the title [WIP] Fix broken references in schema preventing launch Fix broken schema references preventing Seqera Platform launch Jan 15, 2026
Copilot AI requested a review from adamjtaylor January 15, 2026 10:44
@adamjtaylor
Copy link
Collaborator

@copilot nextflow_schema.json:61-65
Remnove this we dont need synapseconfig at all that wass a mistake

Copy link
Author

Copilot AI commented Jan 15, 2026

@copilot nextflow_schema.json:61-65
Remnove this we dont need synapseconfig at all that wass a mistake

Removed the synapseconfig parameter in commit f029928.

@adamjtaylor adamjtaylor marked this pull request as ready for review January 15, 2026 10:50
@adamjtaylor adamjtaylor requested a review from Copilot January 15, 2026 10:50
Copy link
Collaborator

@adamjtaylor adamjtaylor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Nice job @copilot

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes critical structural errors in nextflow_schema.json that were preventing the Seqera Platform from correctly parsing the pipeline launch form.

Changes:

  • Corrected the typo in the definition key from "miniatue_options" to "miniature_options"
  • Fixed broken schema references in the allOf section to point to existing definitions
  • Added a description for the n_components parameter
Comments suppressed due to low confidence (2)

nextflow_schema.json:41

  • Corrected spelling of 'thumbnauls' to 'thumbnails'.
                    "description": "The pyramid level used in thumbnauls, Default: -1 (smallest)",

nextflow_schema.json:52

  • Corrected spelling of 'compatiable' to 'compatible'.
                    "description": "The colormap used. Ensure colormap is compatiable with `n_components` selected ",

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@adamjtaylor
Copy link
Collaborator

@copilot we do need to fix

nextflow_schema.json:41

Corrected spelling of 'thumbnauls' to 'thumbnails'.
"description": "The pyramid level used in thumbnauls, Default: -1 (smallest)",
nextflow_schema.json:52

Corrected spelling of 'compatiable' to 'compatible'.
"description": "The colormap used. Ensure colormap is compatiable with n_components selected ",

Copy link
Author

Copilot AI commented Jan 15, 2026

@copilot we do need to fix

nextflow_schema.json:41
...

Fixed both spelling errors in commit aeb7db1:

  • "thumbnauls" → "thumbnails" (line 41)
  • "compatiable" → "compatible" (line 52)

@adamjtaylor
Copy link
Collaborator

Confirming that this unblocks launch on Seqera Platform Version 25.1.5_5197cfa as deployed at Sage as of today.

@adamjtaylor adamjtaylor requested review from aditigopalan and removed request for thomasyu888 January 15, 2026 16:05
@aditigopalan
Copy link
Collaborator

is there documentation about how to use the dev environment?

Copilot AI added a commit that referenced this pull request Jan 15, 2026
@adamjtaylor adamjtaylor merged commit 0c5b79e into main Jan 15, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Broken references in schema preventing launch

3 participants