[ENTESB-1947] Fix JSON schema customization which doesn't work well in non-deprecated version