1
0
Fork 0
mirror of synced 2024-06-03 03:14:50 +12:00

Update src/Appwrite/Specification/Format/Swagger2.php

Co-authored-by: Torsten Dittmann <torsten.dittmann@googlemail.com>
This commit is contained in:
Eldad A. Fux 2022-01-01 19:40:57 +02:00 committed by GitHub
parent 724608ce29
commit 70882f6d12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -394,7 +394,7 @@ class Swagger2 extends Format
foreach ($model->getRules() as $rule) {
if (!in_array($rule['type'], ['string', 'integer', 'boolean', 'json', 'float'])) {
if(\is_array($rule['type'])) {
foreach ($rule['type'] as $key => $value) {
foreach ($rule['type'] as $value) {
$usedModels[] = $value;
}
}