Skip to content

Commit ab59613

Browse files
authored
Merge pull request #61 from Xarthisius/fix_process_template
Add a missing required 'type' in process_template example
2 parents fb529d0 + 8775fa3 commit ab59613

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

docs/specification/object-templates.md

+6
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ This is an example of a process template that has fully represented attribute te
6868
[
6969
{
7070
"name" : "Oven Temperature",
71+
"type" : "parameter_template",
7172
"uids" : {"cookie_templates": "oven_temp"},
7273
"tags" : ["oven_settings::temperature"],
7374
"description" : "A template for valid temperature ranges for baking cookies. Below 328K you're not even pasteurizing the dough.",
@@ -88,6 +89,7 @@ This is an example of a process template that has fully represented attribute te
8889
[
8990
{
9091
"name" : "Baking Time",
92+
"type" : "parameter_template",
9193
"uids" : {"cookie_templates": "oven_time"},
9294
"tags" : ["oven_settings::duration"],
9395

@@ -157,6 +159,7 @@ property templates | are unique within | properties
157159
[
158160
{
159161
"uids" : {"cookie_templates" : "choc_chip_comp_01"},
162+
"type" : "property_template",
160163
"tags" : ["ingredients::cookies::nutsallowed"],
161164
"name" : "Chocolate Chip Cookie Composition",
162165
"description" : "Specifying the composition of the linked cookie",
@@ -240,6 +243,7 @@ condition templates | are unique within | conditions
240243
{
241244
"uids" : {"cookie_templates": "hedonic_index_prop"},
242245
"tags" : [],
246+
"type" : "property_template",
243247
"name" : "Chocolate Chip Cookie Hedonic Index",
244248
"description" : "The allowable range for the hedonic index of chocolate chip cookies.",
245249
"bounds" : {
@@ -263,6 +267,7 @@ condition templates | are unique within | conditions
263267
"name" : "Cookie Temperature",
264268
"uids" : {"cookie_templates": "cookie_eating_temp"},
265269
"tags" : [],
270+
"type" : "condition_template",
266271
"description" : "A template for valid temperature ranges for eating cookies.",
267272
"bounds" : {
268273
"default_units" : "kelvin",
@@ -285,6 +290,7 @@ condition templates | are unique within | conditions
285290
"name" : "Number of Cookies",
286291
"uids" : {"cookie_templates": "cookie_count"},
287292
"tags" : ["chocula"],
293+
"type" : "parameter_template",
288294
"description" : "A template for the number of cookies to eat for a hedonic index test.",
289295
"bounds" : {
290296
"type" : "integer_bounds",

docs/specification/objects.md

+10-5
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ Same as `ProcessSpec`, but with the `template` inherited from the `spec`, i.e.,
207207
],
208208
"name" : "Bake Cookies Fo' Real",
209209
"notes" : "Process Run baking some chocolate chip cookies in an oven",
210-
"process_spec" : {
210+
"process" : {
211211
"type" : "link_by_uid",
212212
"scope" : "id",
213213
"id" : "064148e6-1cce-4d89-bfde-7ecd0aa4632b"
@@ -414,7 +414,12 @@ material.spec | = | spec.material
414414
"type" : "normal_real",
415415
"mean" : 0.347,
416416
"std" : 0.002
417-
}
417+
},
418+
"spec": {
419+
"type" : "link_by_uid",
420+
"scope" : "id",
421+
"id" : "28d95397-4887-48f0-bdda-94a9a4c5ef43"
422+
},
418423
}
419424
```
420425

@@ -548,7 +553,7 @@ process | must be unique | globally
548553
}
549554
}
550555
}],
551-
"process_spec" : {
556+
"process" : {
552557
"type" : "link_by_uid",
553558
"scope" : "id",
554559
"id" : "064148e6-1cce-4d89-bfde-7ecd0aa4632b"
@@ -744,12 +749,12 @@ condition templates | must be unique | among the templates of conditions
744749
},
745750
"name" : "Chocolate Chip Hedonic Measurement",
746751
"notes" : "Rate the cookies on a scale from 9.9-10",
747-
"measurement_spec" : {
752+
"spec" : {
748753
"type" : "link_by_uid",
749754
"scope" : "cookie_ids",
750755
"id" : "choc_chip_hedonic_spec"
751756
},
752-
"material_run" : {
757+
"material" : {
753758
"type" : "link_by_uid",
754759
"scope" : "cookie_ids",
755760
"id": "choc_chip_001_run_006"

0 commit comments

Comments
 (0)