From 34d6be22d978938bb32994c66c24a7f05d501267 Mon Sep 17 00:00:00 2001 From: Tomoya Tanjo Date: Wed, 5 Dec 2018 19:07:30 +0900 Subject: [PATCH] Add Defaultable for `CommandInputRecordField` --- Process.yml | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/Process.yml b/Process.yml index 1bc0777..1c0962b 100644 --- a/Process.yml +++ b/Process.yml @@ -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 @@ -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 @@ -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