alexbecker
7 years agoNew Contributor
Mock API generation failing with unhelpful error message
I'm trying to get the SwaggerHub API Auto Mocking integration to work, but the integration keeps failing with "Could not generate API mock. Please make sure the API definition is valid.". As far as I can tell the definition is valid OpenAPI 3.0, and the UI shows no errors. I've tried without success to find documenation for what JSON-SCHEMA features Auto Mocking supports and does not.
I've shared my API with the swaggerhub-support user, can you please take a look and determine what is causing the mock generation to fail?
Trial and error using https://github.com/swagger-api/swagger-codegen revealed that the issue was that "additionalProperties: false" is not supported (it expects an object).