bigchicchicken/api-platform-skip-null-bundle

Bundle to globally define skip_null_values parameter on all entities for ApiPlatform

v1.0.0 2022-09-26 14:11 UTC

This package is auto-updated.

Last update: 2024-10-30 01:59:43 UTC


README

Packagist

Bundle to globally define skip_null_values parameter on all entities for ApiPlatform.

Installation:

Install ApiPlatformSkipNullBundle library using Composer:

composer require bigchicchicken/api-platform-skip-null-bundle

Add/Check activation in the file config/bundles.php:

// config/bundles.php

return [
    // ...
    ApiPlatformSkipNullBundle\ApiPlatformSkipNullBundle::class => ['all' => true],
];

Configure the bundle:

# config/packages/api_platform_skip_null.yaml

api_platform_skip_null:
    enabled: true|false # (Default: true)

License

This is completely free and released under the MIT License.