Closed isla-nye closed 2 years ago
For what it's worth, this issue is also a pretty big problem for me and my teams, as we utilise OpenAPI Specs to generate mocks.
I am attempting to load specs for Azure and am running into the same problem.
Can you please provide the actual OpenAPI specification that is causing the problem so that I can reproduce this issue.
This has now been reproduced and fixed
Describe the issue Using MockServer with an OpenApi Spec throws an error: SEVERE Unable to load API spec, Cannot invoke "shaded_package.io.swagger.v3.oas.models.parameters.Parameter$StyleEnum.ordinal()" because "style" is null for open api:
Result is that paths do not seem to be configured properly.
What you are trying to do Description of what you are trying to do so we can understand the context of the problem
MockServer version 5.13.2 (Tested and found that the issue did not occur with 5.12.0)
To Reproduce Steps to reproduce the issue: Create expectations with a valid OpenApi spec.
Expected behaviour No error to be thrown for "style" property not being present for parameters