I have the exact same issue. According to the doc the "
additionalProperties: false" should be put inside the function defination object alongside the ‘required’ array. But it won’t work neither.
I had the same issue, adding “additionalProperties”: false after “required”:, worked for me. But it threw and error saying pattern and format is not supported in properties. After I removed all patterns and formats, it worked.