Skip to content

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

License

Notifications You must be signed in to change notification settings

BigChicChicken/ApiPlatformSkipNullBundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

# 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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages