The parser, parameter model factory and ReferenceDataToolParameter read
the table from the validated YamlReferenceDataParameter instead of the raw
dict; the factory returns its to_internal(). Disk tools now get the API's
validation errors (e.g. a leftover filter key).
CanonicalYamlReferenceDataInputSource validates once and hands raw-dict
readers (SelectToolParameter) the model's coerced flags, so the form and
the parameter model agree on multiple/optional.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
XML params with an <options> child passed the basic.py guard, and the
parameter model factory accepted any reference_data param. Both now ask
the input source for its validated reference_data definition.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
API test asserts the form offers no options and the 400 names the
parameter; closed-after-submit unit test covers validated_state too and
pins the failure to from_json.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
User-defined tools had no way to read reference data installed through
tool data tables. A `reference_data` input offers a table's entries as
a select and hands the chosen entry to expressions like a dataset, with
`path`, `basename`, `source` and the table's other columns under
`metadata`. `multiple: true` supplies a list of entries.
It has its own parameter model, ReferenceDataParameterModel
(gx_reference_data), which runtimeify, the YAML v1 parameter allowlist
and the test case conversions match on. The tool form renders it as a
select.
GalaxyUserTool can only read tables an admin marked `user_accessible`,
checked on the form and again when the job runs. Admin-installed
GalaxyTool YAML tools can read every table.
Refs #22700