sofascore / purgatory-bundle

Invalidate caches and achieve high hitrate with readable and maintainable annotations
MIT License
48 stars 0 forks source link

Skip entities with null properties when generating URL #64

Open Brajk19 opened 6 months ago

Brajk19 commented 6 months ago

If we have url like /api/{property} and that parameter is mapped to nullable property, in every PurgeON attribute, this check has to be added: obj.getProperty() is not null.

It would be better if Purgatory could automatically skip those entities. Maybe put it as optional config for whole package.