Class: Etna::Cwl::InputParameter

Inherits:
Etna::Cwl show all
Defined in:
lib/etna/cwl.rb

Constant Summary collapse

FIELD_LOADERS =
{
    id: PrimitiveLoader::STRING.optional,
    label: PrimitiveLoader::STRING.optional,
    secondaryFiles: NeverLoader::UNSUPPORTED,
    streamable: NeverLoader::UNSUPPORTED,
    loadContents: NeverLoader::UNSUPPORTED,
    loadListing: NeverLoader::UNSUPPORTED,
    valueFrom: NeverLoader::UNSUPPORTED,
    doc: PrimitiveLoader::STRING.optional,

    type: TypedDSLLoader::WITH_UNIONS_TYPE_LOADER,
    default: AnyLoader::ANY.optional,
    format: PrimitiveLoader::STRING.optional,
}

Instance Method Summary collapse

Methods inherited from Etna::Cwl

#as_json, as_json, #initialize, load_item, loader

Constructor Details

This class inherits a constructor from Etna::Cwl

Instance Method Details

#defaultObject



519
520
521
522
523
# File 'lib/etna/cwl.rb', line 519

def default
  default = @attributes['default']
  return nil unless default
  RecordType::Field.type_loader(@attributes['type'])&.load(default)
end