Skip to content

Commit 369963f

Browse files
committed
Use ModuleSchemaValidator.DEFAULT_SCHEMA_URL constant in ModuleSpec.asMap [ci fast]
Drop the duplicated literal so the default schema URL has a single source of truth, per review feedback on #7094. Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
1 parent b70b1fe commit 369963f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/nextflow/src/main/groovy/nextflow/module/ModuleSpec.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ class ModuleSpec {
161161
*/
162162
Map<String, Object> asMap() {
163163
final result = new LinkedHashMap<String, Object>()
164-
result['$schema'] = 'https://raw.githubusercontent.com/nextflow-io/schemas/refs/heads/main/module/v1/schema.json'
164+
result['$schema'] = ModuleSchemaValidator.DEFAULT_SCHEMA_URL
165165
if( name )
166166
result['name'] = name
167167
if( version )

0 commit comments

Comments
 (0)