Skip to content

Commit 2a1c6ae

Browse files
committed
fixed build error
1 parent 6d2966f commit 2a1c6ae

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

samples/java-jersey2/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
<parent>
33
<groupId>com.wordnik</groupId>
44
<artifactId>swagger-project_2.10</artifactId>
5-
<version>1.3.1-SNAPSHOT</version>
5+
<version>1.3.2</version>
66
<relativePath>../..</relativePath>
77
</parent>
88
<modelVersion>4.0.0</modelVersion>
99
<groupId>com.wordnik</groupId>
1010
<artifactId>swagger-jersey2-sample-app_2.10</artifactId>
1111
<packaging>war</packaging>
1212
<name>swagger-jersey2-jaxrs-app</name>
13-
<version>1.3.1-SNAPSHOT</version>
13+
<version>1.3.2</version>
1414
<build>
1515
<sourceDirectory>src/main/java</sourceDirectory>
1616
<plugins>
@@ -121,4 +121,4 @@
121121
<properties>
122122
<jersey2-version>2.4</jersey2-version>
123123
</properties>
124-
</project>
124+
</project>

samples/java-jersey2/src/main/java/com/wordnik/swagger/sample/Bootstrap.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ public class Bootstrap extends HttpServlet {
2929
"http://www.apache.org/licenses/LICENSE-2.0.html" /* license URL */
3030
);
3131

32-
List<String> scopes = new ArrayList<String>();
33-
scopes.add("PUBLIC");
32+
List<AuthorizationScope> scopes = new ArrayList<AuthorizationScope>();
33+
scopes.add(new AuthorizationScope("email", "Access to your email address"));
34+
scopes.add(new AuthorizationScope("pets", "Access to your pets"));
3435

3536
List<GrantType> grantTypes = new ArrayList<GrantType>();
3637

0 commit comments

Comments
 (0)