Apply suggestions from code review
Co-authored-by: Torsten Dittmann <torsten.dittmann@googlemail.com>
This commit is contained in:
parent
d0e777edd5
commit
9c9a17a2a4
|
@ -443,7 +443,7 @@ class OpenAPI3 extends Format
|
|||
|
||||
if(\is_array($rule['type'])) {
|
||||
$items = [
|
||||
'oneOf' => \array_map(function($type) {
|
||||
'anyOf' => \array_map(function($type) {
|
||||
return ['$ref' => '#/components/schemas/'.$type];
|
||||
}, $rule['type'])
|
||||
];
|
||||
|
|
|
@ -446,7 +446,7 @@ class Swagger2 extends Format
|
|||
|
||||
if(\is_array($rule['type'])) {
|
||||
$items = [
|
||||
'oneOf' => \array_map(function($type) {
|
||||
'anyOf' => \array_map(function($type) {
|
||||
return ['$ref' => '#/definitions/'.$type];
|
||||
}, $rule['type'])
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue