Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Defaultable for CommandInputRecordField #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 16 additions & 14 deletions Process.yml
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,20 @@ $graph:
jsonldPredicate: "rdfs:label"
doc: "A short, human-readable label of this object."

- name: Defaultable
type: record
abstract: true
fields:
- name: default
type: Any?
jsonldPredicate:
_id: sld:default
noLinkCheck: true
doc: |
The default value to use for this parameter if the parameter is missing
from the input object, or if the value of the parameter in the input
object is `null`. Default values are applied before evaluating expressions
(e.g. dependent `valueFrom` fields).

- name: Identified
type: record
Expand Down Expand Up @@ -608,7 +622,7 @@ $graph:

- name: InputRecordField
type: record
extends: [sld:RecordField, FieldBase, InputFormat, LoadContents]
extends: [sld:RecordField, FieldBase, InputFormat, LoadContents, Defaultable]
specialize:
- specializeFrom: "sld:RecordSchema"
specializeTo: InputRecordSchema
Expand Down Expand Up @@ -694,19 +708,7 @@ $graph:
- name: InputParameter
type: record
abstract: true
extends: [Parameter, InputFormat, LoadContents]
fields:
- name: default
type: Any?
jsonldPredicate:
_id: sld:default
noLinkCheck: true
doc: |
The default value to use for this parameter if the parameter is missing
from the input object, or if the value of the parameter in the input
object is `null`. Default values are applied before evaluating expressions
(e.g. dependent `valueFrom` fields).

extends: [Parameter, InputFormat, LoadContents, Defaultable]

- name: OutputParameter
type: record
Expand Down