Skip to content

Commit 1f26356

Browse files
authored
Add union discriminator standard attribute (#67)
1 parent c965249 commit 1f26356

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

bdl-ts/src/generated/json/conventional.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@
7676
"description": "HTTP status code string as provided by the OpenAPI response map.\nExample: \"200\", \"400\", \"404\", \"500\", \"default\""
7777
}
7878
],
79+
"bdl.union": [
80+
{
81+
"key": "discriminator",
82+
"description": "Specifies the discriminator field name for tagged unions."
83+
}
84+
],
7985
"bdl.union.item": [
8086
{
8187
"key": "status",

standards/conventional.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ attributes:
6363
description: |-
6464
HTTP status code string as provided by the OpenAPI response map.
6565
Example: "200", "400", "404", "500", "default"
66+
bdl.union:
67+
- key: discriminator
68+
description: |-
69+
Specifies the discriminator field name for tagged unions.
6670
bdl.union.item:
6771
- key: status
6872
description: |-

0 commit comments

Comments
 (0)