Bugfix: Definition name must be lowercase so that descriptions file can be found

This commit is contained in:
Robert Winkler
2015-05-05 14:02:26 +02:00
parent a8e84995ea
commit 7d2acae537
4 changed files with 9 additions and 6 deletions

View File

@@ -185,7 +185,7 @@ public class DefinitionsDocument extends MarkupDocument {
private String propertyDescription(String definitionName, String propertyName, Property property) throws IOException {
String description;
if(handWrittenDescriptionsEnabled){
description = handWrittenPathDescription(definitionName + "/" + propertyName.toLowerCase(), DESCRIPTION_FILE_NAME);
description = handWrittenPathDescription(definitionName.toLowerCase() + "/" + propertyName.toLowerCase(), DESCRIPTION_FILE_NAME);
if(StringUtils.isBlank(description)) {
if (logger.isInfoEnabled()) {
logger.info("Hand-written description file cannot be read. Trying to use description from Swagger source.");