1
0
Fork 0
mirror of synced 2024-06-26 10:10:57 +12:00

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

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

View file

@ -397,7 +397,7 @@ class OpenAPI3 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;
}
}