public class ExampleGenerator extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<String,io.swagger.models.Model> |
examples |
Constructor and Description |
---|
ExampleGenerator(Map<String,io.swagger.models.Model> examples) |
Modifier and Type | Method and Description |
---|---|
List<Map<String,String>> |
generate(Map<String,Object> examples,
List<String> mediaTypes,
io.swagger.models.properties.Property property) |
Object |
resolveModelToExample(String name,
String mediaType,
io.swagger.models.Model model,
Set<String> processedModels) |
protected Object |
resolvePropertyToExample(String mediaType,
io.swagger.models.properties.Property property,
Set<String> processedModels) |
public List<Map<String,String>> generate(Map<String,Object> examples, List<String> mediaTypes, io.swagger.models.properties.Property property)
protected Object resolvePropertyToExample(String mediaType, io.swagger.models.properties.Property property, Set<String> processedModels)
Copyright © 2016. All rights reserved.