Skip to content

Commit ff30991

Browse files
authored
Merge pull request #720 from common-workflow-language/clarify-union-types
Add description of union types
2 parents b8c7fc3 + a8a9e1e commit ff30991

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

schema_salad/metaschema/metaschema_base.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ $graph:
9191
typeDSL: true
9292
refScope: 2
9393
doc: |
94-
The field type
94+
The field type. If it is an array, it indicates
95+
that the field type is a union type of its elements.
96+
Its elements may be duplicated.
9597
9698
9799
- name: RecordSchema

schema_salad/tests/metaschema-pre.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@
161161
"typeDSL": true,
162162
"refScope": 2
163163
},
164-
"doc": "The field type\n"
164+
"doc": "The field type. If it is an array, it indicates\nthat the field type is a union type of its elements.\nIts elements may be duplicated.\n"
165165
}
166166
]
167167
},

schema_salad/tests/test_makedoc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,5 +239,5 @@ def test_detect_changes_in_html(metaschema_doc: str, tmp_path: Path) -> None:
239239
with open(result, "w") as h:
240240
h.write(metaschema_doc)
241241
assert (
242-
hasher.hexdigest() == "360fcb7860e6ccc15db70a20f95247a0b5ee729dd3446747463e68054e186e59"
242+
hasher.hexdigest() == "400bd8b4f3af31ffaeeb04b7780a140b0d26151645016e49a1a375964b67ea7e"
243243
), result

0 commit comments

Comments
 (0)