swagger-mock-api icon indicating copy to clipboard operation
swagger-mock-api copied to clipboard

ObjectParser did not support additionalProperties

Open SixYearsInFebruary opened this issue 6 years ago • 0 comments

Thx for this repo. I used the yaml file which generated by openapi-generator-maven-plugin to start mock server. But the ObjectParse did not support additionalProperties. The modify of ObjectParse is below: if (schema.additionalProperties) { ret[chance.string()] = this.parser.parse(scheme); } Also need to modify the canParse method to support additionalProperties. @dzdrazil Thx

SixYearsInFebruary avatar Aug 09 '18 01:08 SixYearsInFebruary