Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 969 Bytes

README.md

File metadata and controls

36 lines (23 loc) · 969 Bytes

ApiPlatformSkipNullBundle

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:

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

License

This is completely free and released under the MIT License.