schema_salad
schema_salad copied to clipboard
Spurious warning with enum symbol names containing colon
2023-01-05T23:13:49.598203507Z URI prefix '#bcftools_view.cwl/bcftools-view/min_count/min_count/min_count_type/min_count_type/' of '#bcftools_view.cwl/bcftools-view/min_count/min_count/min_count_type/min_count_type/:nref' not recognized, are you missing a $namespaces section?
It is getting confused by the colon in the enum symbol name ":nref". The code is interpreting it as a possible prefix (like "sbg:") when in fact it is just part of the name.
I think the check could be a little more nuanced and does not need to print a warning in this case, because the rest of the code actually handles it just fine.
These sorts of warnings should also provide a line number.