Skip to content

Commit c95931d

Browse files
committed
fix: add test case for union model generator
1 parent ae4b667 commit c95931d

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

tests/test_data/test_api.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,27 @@
578578
}
579579
}
580580
},
581+
"Admin": {
582+
"title": "Admin",
583+
"allOf": [
584+
{
585+
"$ref": "#/components/schemas/User"
586+
},
587+
{
588+
"type": "object",
589+
"properties": {
590+
"role": {
591+
"type": "string",
592+
"description": "Role name for this admin user"
593+
},
594+
"group": {
595+
"type": "integer",
596+
"description": "Admin group ID"
597+
}
598+
}
599+
}
600+
]
601+
},
581602
"EnumComponent": {
582603
"title": "EnumComponent",
583604
"enum": [

0 commit comments

Comments
 (0)