Skip to content

Commit f4885f1

Browse files
authored
Merge pull request #49 from vinscom/develop
Release 2.4
2 parents 07e34d7 + 8988f17 commit f4885f1

File tree

3 files changed

+26
-18
lines changed

3 files changed

+26
-18
lines changed

pom.xml

+18-18
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<modelVersion>4.0.0</modelVersion>
55
<groupId>in.erail</groupId>
66
<artifactId>api-framework</artifactId>
7-
<version>2.3</version>
7+
<version>2.4</version>
88
<packaging>jar</packaging>
99
<developers>
1010
<developer>
@@ -96,7 +96,7 @@
9696
</profile>
9797
</profiles>
9898
<properties>
99-
<vertx-version>3.5.1</vertx-version>
99+
<vertx.version>3.5.4</vertx.version>
100100
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
101101
<maven.compiler.source>1.8</maven.compiler.source>
102102
<maven.compiler.target>1.8</maven.compiler.target>
@@ -105,84 +105,84 @@
105105
<dependency>
106106
<groupId>io.vertx</groupId>
107107
<artifactId>vertx-core</artifactId>
108-
<version>${vertx-version}</version>
108+
<version>${vertx.version}</version>
109109
</dependency>
110110
<dependency>
111111
<groupId>io.vertx</groupId>
112112
<artifactId>vertx-rx-java2</artifactId>
113-
<version>${vertx-version}</version>
113+
<version>${vertx.version}</version>
114114
</dependency>
115115
<dependency>
116116
<groupId>io.vertx</groupId>
117117
<artifactId>vertx-web-api-contract</artifactId>
118-
<version>${vertx-version}</version>
118+
<version>${vertx.version}</version>
119119
</dependency>
120120
<dependency>
121121
<groupId>io.vertx</groupId>
122122
<artifactId>vertx-unit</artifactId>
123-
<version>${vertx-version}</version>
123+
<version>${vertx.version}</version>
124124
<scope>test</scope>
125125
</dependency>
126126
<dependency>
127127
<groupId>io.vertx</groupId>
128128
<artifactId>vertx-web</artifactId>
129-
<version>${vertx-version}</version>
129+
<version>${vertx.version}</version>
130130
</dependency>
131131
<dependency>
132132
<groupId>io.vertx</groupId>
133133
<artifactId>vertx-hazelcast</artifactId>
134-
<version>${vertx-version}</version>
134+
<version>${vertx.version}</version>
135135
</dependency>
136136
<dependency>
137137
<groupId>io.vertx</groupId>
138138
<artifactId>vertx-auth-jwt</artifactId>
139-
<version>${vertx-version}</version>
139+
<version>${vertx.version}</version>
140140
</dependency>
141141
<dependency>
142142
<groupId>io.vertx</groupId>
143143
<artifactId>vertx-auth-oauth2</artifactId>
144-
<version>${vertx-version}</version>
144+
<version>${vertx.version}</version>
145145
</dependency>
146146
<dependency>
147147
<groupId>io.vertx</groupId>
148148
<artifactId>vertx-mongo-client</artifactId>
149-
<version>${vertx-version}</version>
149+
<version>${vertx.version}</version>
150150
</dependency>
151151
<dependency>
152152
<groupId>io.vertx</groupId>
153153
<artifactId>vertx-lang-js</artifactId>
154-
<version>${vertx-version}</version>
154+
<version>${vertx.version}</version>
155155
</dependency>
156156
<dependency>
157157
<groupId>io.vertx</groupId>
158158
<artifactId>vertx-redis-client</artifactId>
159-
<version>${vertx-version}</version>
159+
<version>${vertx.version}</version>
160160
</dependency>
161161
<dependency>
162162
<groupId>io.vertx</groupId>
163163
<artifactId>vertx-web-client</artifactId>
164-
<version>${vertx-version}</version>
164+
<version>${vertx.version}</version>
165165
</dependency>
166166
<dependency>
167167
<groupId>io.netty</groupId>
168168
<artifactId>netty-transport-native-epoll</artifactId>
169-
<version>4.1.15.Final</version>
169+
<version>4.1.19.Final</version>
170170
<classifier>linux-x86_64</classifier>
171171
</dependency>
172172
<dependency>
173173
<groupId>com.github.vladimir-bukhtoyarov</groupId>
174174
<artifactId>bucket4j-core</artifactId>
175-
<version>3.1.1</version>
175+
<version>3.1.2</version>
176176
</dependency>
177177
<dependency>
178178
<groupId>in.erail</groupId>
179179
<artifactId>glue</artifactId>
180-
<version>2.3</version>
180+
<version>2.4</version>
181181
</dependency>
182182
<dependency>
183183
<groupId>org.mockito</groupId>
184184
<artifactId>mockito-core</artifactId>
185-
<version>2.15.0</version>
185+
<version>2.22.0</version>
186186
<scope>test</scope>
187187
</dependency>
188188
<dependency>

src/main/java/in/erail/common/FrameworkConstants.java

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public static class Cookie {
2929
}
3030

3131
public static final String HEADERS = "headers";
32+
public static final String MULTI_VALUE_HEADERS = "multiValueHeaders";
3233
public static final String PATH_PARAM = "pathParameters";
3334
public static final String QUERY_STRING_PARAM = "queryStringParameters";
3435
public static final String BODY = "body";

src/main/java/in/erail/route/OpenAPI3RouteBuilder.java

+7
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,13 @@ public Router getRouter(Router pRouter) {
247247
process(routingContext, service.getServiceUniqueId());
248248
}
249249
});
250+
251+
apiFactory.addFailureHandlerByOperationId(service.getOperationId(),(routingContext) -> {
252+
routingContext
253+
.response()
254+
.setStatusCode(400)
255+
.end(routingContext.failure().toString());
256+
});
250257
});
251258
});
252259

0 commit comments

Comments
 (0)