star7th пре 5 година
родитељ
комит
cc5ca7a310
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      server/Application/Api/Controller/ImportController.class.php

+ 1 - 1
server/Application/Api/Controller/ImportController.class.php

@@ -31,7 +31,7 @@ class ImportController extends BaseController {
             $json = file_get_contents($file) ;
             $json_array = json_decode($json ,1 );
             unset($json);
-            if ($json_array['swagger'] && $json_array['info']) {
+            if (( $json_array['swagger'] || $json_array['openapi'] ) && $json_array['info']) {
                 R("ImportSwagger/import");
                 return ;
             }