Skip to content

Commit

Permalink
Fix for Issue #7
Browse files Browse the repository at this point in the history
  • Loading branch information
ssvaidyanathan committed Nov 18, 2018
1 parent 5dbc1d4 commit 7abbeee
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,11 @@
<version>3.1.0</version>
</dependency>
<!-- mgmt-api-java-sdk -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-text</artifactId>
<version>1.2</version>
</dependency>
</dependencies>

<build>
Expand Down
2 changes: 1 addition & 1 deletion samples/DevPortal/shared-pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<plugin>
<groupId>com.apigee.smartdocs.config</groupId>
<artifactId>apigee-smartdocs-maven-plugin</artifactId>
<version>1.0.4</version>
<version>1.0.5</version>
<!--
portal.model.vocabulary is the machine name of the model vocabulary stored within the Developer Portal.
portal.model.fields represent each field of data from the OpenAPI document that would be pushed to the Developer Portal.
Expand Down
2 changes: 1 addition & 1 deletion samples/DevPortal/specs/mock.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
swagger: '2.0'
info:
description: 'OpenAPI Specification for the Apigee mock target service endpoint.'
description: 'OpenAPI Specification for the Apigee mock target service endpoint. This is a "test" description'
version: 1.0.0
title: Mock Target API
host: mocktarget.apigee.net
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@
import java.util.List;
import java.util.Map;
import java.util.Set;

import org.apache.commons.text.StringEscapeUtils;
import org.json.simple.JSONValue;
import org.yaml.snakeyaml.Yaml;

Expand Down Expand Up @@ -470,7 +472,7 @@ private static ByteArrayContent getAPIModelContent(ServerProfile profile,

String description = "";
if (spec.getDescription() != null) {
description = spec.getDescription();
description = StringEscapeUtils.escapeJava(spec.getDescription());
}

String payload = "{"
Expand Down

0 comments on commit 7abbeee

Please sign in to comment.