Skip to content

Releases: onmoon/openapi-server-bundle

Symfony 8 support

Choose a tag to compare

@sspat sspat released this 19 Feb 19:08
b0f1fe0
  • Added support for Symfony 8
  • Dropped support for Symfony 7.0-7.3
  • Added support for PHP 8.5
  • Dropped support for PHP 8.1

PHP 8.4 support

Choose a tag to compare

@sspat sspat released this 25 Jun 21:11
055e85d
  • Added support for PHP 8.4
  • Removed dependency on forked cebe/php-openapi package

Reduce unneccessary response size bloat

Choose a tag to compare

@sspat sspat released this 06 May 13:30
cfd3909
reduce response sizes by disabling json-pretty-print (#192)

Co-authored-by: Patrik Foldes <pf@csgo.com>

Allow installing without minimum stability change

Choose a tag to compare

@sspat sspat released this 29 Jul 14:30
02e6aeb
remove minimum-stability dev requirement (#189)

Co-authored-by: Patrik Foldes <pf@csgo.com>

Fix compatibility with symfony/yaml 7

Choose a tag to compare

@sspat sspat released this 10 Jun 10:50
ca7388b
fix compatibility with symfony 7 (#187)

Co-authored-by: Patrik Foldes <pf@csgo.com>

Symfony 7 support

Choose a tag to compare

@sspat sspat released this 21 May 15:31
5511ee6
  • Added support for Symfony 7
  • Dropped support for Symfony 6.0-6.3

More data added to ResponseEvent

Choose a tag to compare

@sspat sspat released this 06 May 13:38
75a4422

Both RequestHandler and Request objects are now recoverable from the ResponseEvent.

Allow generating custom DateTime classes for date-time fields

Choose a tag to compare

@sspat sspat released this 23 Dec 09:04
f85a01f

You can now specify for each specification what class should be used for serializing and deserializing date and date-time fields in this API

open_api_server:
  specs:
    petstore:
      date_time_class: '\Carbon\CarbonImmutable'

The specified class should be an implementation of \DateTimeInterface

Change generated classes structure to reflect types from specification

Choose a tag to compare

@sspat sspat released this 04 May 13:24
1aec01f

Changelog

  • Generated request and response classes have been completely reworked, to reflect the named types provided in the specification. In general this results in significantly less classes generated, as each type from the specification is now mapped to only one class. Previously there was one class generated per each endpoint that uses a type from the specification.
  • The refresh command has been removed (php bin/console open-api:refresh), use the generate command now instead (php bin/console open-api:generate)

Notes on updating to this version

After updating to this version, add an empty implementation of the new \OnMoon\OpenApiServerBundle\Interfaces\ApiLoader::getAllowedCodes method to your generated ApiServiceLoaderServiceSubscriber class for the first code generation using the new version of the package to work. When you run the generation for the first time it will replace this empty implementation with a working one.

/**
 * This class was automatically generated
 * You should not change it manually as it will be overwritten
 */
class ApiServiceLoaderServiceSubscriber implements ApiLoader
{
    ...

    /** @return string[] */
    public function getAllowedCodes(string $apiClass, string $dtoClass): array
    {
        return [];
    }
}

Add Symfony request object to RequestDtoEvent

Choose a tag to compare

@sspat sspat released this 16 Nov 10:48
8df21f3
  • Added the Symfony request object to RequestDtoEvent