• I want to propose fix for params type = file

    wp-content/plugins/wp-api-swaggerui/wp-api-swaggerui.php

    method:getParametersFromArgs

    could you please change

    from
    $parameters[$mtd][] = $this->buildParams($param, $mtd, $endpoint, [‘type’ => ‘string’]+ $detail);

    to:
    $parameters[$mtd][] = $this->buildParams($param, $mtd, $endpoint, array_merge([‘type’ => ‘string’], $detail));

    and after that params with type=file will works properly

  • The topic ‘Impossible to set type=file for paramets’ is closed to new replies.