1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { CommandInputParameter } from 'models/workflow';
6 import { require } from 'validators/require';
7 import { CWLType } from '../../models/workflow';
10 const alwaysValid = () => undefined;
12 export const required = ({ type }: CommandInputParameter) => {
13 if (type instanceof Array) {
14 for (const t of type) {
15 if (t === CWLType.NULL) {