Skip to content

Commit b68d0d1

Browse files
committed
Add a test for description for php-openapi/yii2-openapi#51
1 parent 15faaba commit b68d0d1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

tests/spec/data/resolve_all_of.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ components:
3131
maxLength: 12
3232
Fruit:
3333
type: object
34+
description: The Fruit description
3435
required:
3536
- id3
3637
- name
@@ -60,6 +61,7 @@ components:
6061
type: integer
6162
name4:
6263
type: string
64+
- description: The last user description
6365

6466
paths:
6567
'/':

tests/spec/data/resolve_all_of_expected.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,9 @@
4444
]
4545

4646
],
47+
'description' => 'The last user description',
4748
'x-faker' => false,
48-
'x-faker2' => true
49+
'x-faker2' => true,
4950
],
5051
],
5152
];

0 commit comments

Comments
 (0)