diff --git a/src/main/java/io/swagger/inflector/examples/ExampleBuilder.java b/src/main/java/io/swagger/inflector/examples/ExampleBuilder.java index 069fff5a..32422b90 100644 --- a/src/main/java/io/swagger/inflector/examples/ExampleBuilder.java +++ b/src/main/java/io/swagger/inflector/examples/ExampleBuilder.java @@ -513,8 +513,9 @@ else if(model instanceof ModelImpl) { if(impl.getProperties() != null) { for(String key : impl.getProperties().keySet()) { Property property = impl.getProperties().get(key); - if(property instanceof ObjectProperty) + if(property instanceof ObjectProperty) { property.setName(StringUtils.capitalize(key)); + } Example propExample = fromProperty(property, definitions, processedModels); ex.put(key, propExample); }