This PR is an attempt to fix disabling faking schema #240 in v2 interface.
Today parametersResolution generates from schema (e.g. "") or from example (if example doesn't exist it generates some "lorem ipsum" stuff).
I suggest to add new value Hybrid to parametersResolution in order to provide mode in which if example exists - use it, if not - use placeholder as in "Schema" mode instead of "lorem ipsum" because there are some case (like dates) where this replacement is not appropriate.
F.e.: with new mode for petstore spec we will have such generated bodies
Hello!
This PR is an attempt to fix disabling faking schema #240 in v2 interface. Today parametersResolution generates from schema (e.g. "") or from example (if example doesn't exist it generates some "lorem ipsum" stuff).
I suggest to add new value
Hybrid
toparametersResolution
in order to provide mode in which if example exists - use it, if not - use placeholder as in "Schema" mode instead of "lorem ipsum" because there are some case (like dates) where this replacement is not appropriate.F.e.: with new mode for petstore spec we will have such generated bodies
with hybrid mode:
with example mode:
with schema mode: