core icon indicating copy to clipboard operation
core copied to clipboard

Make sure every ApiResource/ApiProperty property is nullable

Open soyuka opened this issue 5 years ago • 1 comments

The new ApiPlatform/Metadata/ApiResource and ApiPlatform/Metadata/ApiProperty properties should all be nullable and have null as default which is not the case right now. This makes decoration easier, when a factory runs it should skip nullable values.

For example: https://github.com/api-platform/core/blob/main/src/Metadata/ApiResource.php#L162.

soyuka avatar Sep 02 '21 17:09 soyuka

I'd like to get into it if possible :)

Zowac avatar Sep 06 '21 10:09 Zowac