I've looked into this and it seems that the OpenApi specification that you used (
the official spec on in the open api repo!) is actually not really valid! The thing that the generator is blowing up on is that the spec states that the endpoint will take XML, JSON and form parameters for the body. However - one of the fields (category) is actually a complex object with 2 fields - which is not representable in a form encoded form AFAIK.
You can see the problem starts here:
https://github.com/swagger-api/swagger-petstore/blob/1e0831732ee927238bc5de46607befc2401e18e4/src/main/resources/openapi.yaml#L71
The toolbox error message could be nicer for sure, but if you remove these erroneous examples from the spec, the generation actually works. Previous versions of the spec which didn't have this problem also work out of the box.