Provide open api schema to dynamic examples generator so you can generate accurate data (#706)

* Provide open api schema to dynamic examples generator so you can generate accurate data using settings like max-length in case of a string

* Rename Schema Property and add a dynamic examples generator with properties from settings like max-length

* Remove blank lines

* Add virtual to all public method in WireMockOpenApiParserExampleValues and ireMockOpenApiParserDynamicExampleValues to extend and overrides examples values
This commit is contained in:
Bruno Targhetta authored and GitHub committed 2021-12-28 17:38:42 +01:00
1 parent eec9c486a5
commit fd1f4968b4
9 files changed
+191 -55

No files matched your search

@@ -36,6 +36,8 @@ namespace WireMock.Net.OpenApiParser.Utils
var schemaExample = schema?.Example;
var schemaEnum = GetRandomEnumValue(schema?.Enum);
_settings.ExampleValues.Schema = schema;
switch (schema?.GetSchemaType())
{
case SchemaType.Boolean: