Open ganqqwerty opened 6 years ago
I found that in function Generators/objectMock()
we have nothing to process oneOf
, anyOf
, allOf
or not
keywords from swagger/openAPI specification. I can provide a relatively naïve implementation for this case, but I have to be sure that @subeeshcbabu is merging pull requests, and didn't abandon the repo.
If you use allOf in your definitions section of the swagger json object, the mock is empty.
This example works fine:
With this json file it produces the following output, which is good and nice:
However with the following json we get an empty object, which is a bug:
The output: