TYPO3-Headless / headless

TYPO3 Headless JSON API providing content for PWA application (e.g. javaScript apps like nuxt-typo3)
https://t3headless.io
GNU General Public License v2.0
159 stars 60 forks source link

Make some fields of JSON cObject optional #649

Closed bmack closed 1 year ago

bmack commented 1 year ago

Is your feature request related to a problem? Please describe. I have a request where some tt_content records should only show a property if the field is actually filled.

Describe the solution you'd like I think a option similar to "ifEmptyReturnNull" is useful. I call it "ifEmptyUnsetKey".

Describe alternatives you've considered An alternative would be to use the "if" syntax, something like "unsetif." which could be more flexible.