Error: Invalid schema for response_format

Hi, I have a schema which uses references and patternProperties, but I get an error stating - Invalid schema for response_format ‘workout’: In context=(), object schema missing properties. I know the schema is valid for sure, is there a limitation on the kind of schema supported?