use last apiref path segment as tag during conversion swagger-api/swagger-codegen#339