mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-06 18:45:23 +00:00
Merge branch 'DevFactory-staging/serializable-classes-should-have-a-version-id-fix-3'
This commit is contained in:
commit
cafea6f726
@ -26,6 +26,8 @@ import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
|
||||
public class Bootstrap extends HttpServlet {
|
||||
private static final long serialVersionUID = 1400930071893332856L;
|
||||
|
||||
@Override
|
||||
public void init(ServletConfig config) throws ServletException {
|
||||
ServletContext context = config.getServletContext();
|
||||
|
@ -17,6 +17,7 @@
|
||||
package io.swagger.generator.exception;
|
||||
|
||||
public class ApiException extends Exception {
|
||||
private static final long serialVersionUID = -5085112752305370687L;
|
||||
private int code;
|
||||
|
||||
public ApiException(int code, String msg) {
|
||||
|
@ -17,6 +17,7 @@
|
||||
package io.swagger.generator.exception;
|
||||
|
||||
public class BadRequestException extends ApiException {
|
||||
private static final long serialVersionUID = -5540416398447252055L;
|
||||
private int code;
|
||||
|
||||
public BadRequestException(int code, String msg) {
|
||||
|
@ -17,6 +17,7 @@
|
||||
package io.swagger.generator.exception;
|
||||
|
||||
public class NotFoundException extends ApiException {
|
||||
private static final long serialVersionUID = -1223255119112336573L;
|
||||
private int code;
|
||||
|
||||
public NotFoundException(int code, String msg) {
|
||||
|
@ -3,6 +3,7 @@ package io.swagger.generator.util;
|
||||
import java.util.List;
|
||||
|
||||
public class ValidationException extends Exception {
|
||||
private static final long serialVersionUID = 6861195361018260380L;
|
||||
private int code;
|
||||
private String msg;
|
||||
private List<ValidationMessage> errors;
|
||||
|
Loading…
Reference in New Issue
Block a user